mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Fix some more places where dbg_value affected codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97765 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -119,6 +119,8 @@ void CriticalAntiDepBreaker::FinishBlock() {
|
||||
|
||||
void CriticalAntiDepBreaker::Observe(MachineInstr *MI, unsigned Count,
|
||||
unsigned InsertPosIndex) {
|
||||
if (MI->isDebugValue())
|
||||
return;
|
||||
assert(Count < InsertPosIndex && "Instruction index out of expected range!");
|
||||
|
||||
// Any register which was defined within the previous scheduling region
|
||||
@@ -409,6 +411,8 @@ BreakAntiDependencies(std::vector<SUnit>& SUnits,
|
||||
for (MachineBasicBlock::iterator I = End, E = Begin;
|
||||
I != E; --Count) {
|
||||
MachineInstr *MI = --I;
|
||||
if (MI->isDebugValue())
|
||||
continue;
|
||||
|
||||
// Check if this instruction has a dependence on the critical path that
|
||||
// is an anti-dependence that we may be able to break. If it is, set
|
||||
|
Reference in New Issue
Block a user