[llvm-commits] [llvm] r85537 - /llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp
David Goodwin
david_goodwin at apple.com
Thu Oct 29 16:30:59 PDT 2009
Author: david_goodwin
Date: Thu Oct 29 18:30:59 2009
New Revision: 85537
URL: http://llvm.org/viewvc/llvm-project?rev=85537&view=rev
Log:
Between scheduling regions, correctly maintain anti-dep breaking state so that we don't incorrectly rename registers that span these regions.
Modified:
llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp
Modified: llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp?rev=85537&r1=85536&r2=85537&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp (original)
+++ llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp Thu Oct 29 18:30:59 2009
@@ -195,8 +195,14 @@
unsigned InsertPosIndex) {
assert(Count < InsertPosIndex && "Instruction index out of expected range!");
+ std::set<unsigned> PassthruRegs;
+ GetPassthruRegs(MI, PassthruRegs);
+ PrescanInstruction(MI, Count, PassthruRegs);
+ ScanInstruction(MI, Count);
+
DEBUG(errs() << "Observe: ");
DEBUG(MI->dump());
+ DEBUG(errs() << "\tRegs:");
unsigned *DefIndices = State->GetDefIndices();
for (unsigned Reg = 0; Reg != TargetRegisterInfo::FirstVirtualRegister; ++Reg) {
@@ -215,11 +221,7 @@
DefIndices[Reg] = Count;
}
}
-
- std::set<unsigned> PassthruRegs;
- GetPassthruRegs(MI, PassthruRegs);
- PrescanInstruction(MI, Count, PassthruRegs);
- ScanInstruction(MI, Count);
+ DEBUG(errs() << '\n');
// We're starting a new schedule region so forget any saved state.
delete SavedState;
More information about the llvm-commits
mailing list