[llvm-branch-commits] [llvm-branch] r85544 - /llvm/branches/Apple/Leela/lib/CodeGen/AggressiveAntiDepBreaker.cpp

Bill Wendling isanbard at gmail.com
Thu Oct 29 17:05:06 PDT 2009


Author: void
Date: Thu Oct 29 19:05:06 2009
New Revision: 85544

URL: http://llvm.org/viewvc/llvm-project?rev=85544&view=rev
Log:
$ svn merge -c 85537 https://llvm.org/svn/llvm-project/llvm/trunk
--- Merging r85537 into '.':
U    lib/CodeGen/AggressiveAntiDepBreaker.cpp


Modified:
    llvm/branches/Apple/Leela/lib/CodeGen/AggressiveAntiDepBreaker.cpp

Modified: llvm/branches/Apple/Leela/lib/CodeGen/AggressiveAntiDepBreaker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/lib/CodeGen/AggressiveAntiDepBreaker.cpp?rev=85544&r1=85543&r2=85544&view=diff

==============================================================================
--- llvm/branches/Apple/Leela/lib/CodeGen/AggressiveAntiDepBreaker.cpp (original)
+++ llvm/branches/Apple/Leela/lib/CodeGen/AggressiveAntiDepBreaker.cpp Thu Oct 29 19:05:06 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-branch-commits mailing list