[llvm-commits] [llvm] r106373 - /llvm/trunk/lib/Target/ARM/Thumb2HazardRecognizer.cpp

Evan Cheng evan.cheng at apple.com
Fri Jun 18 19:36:22 PDT 2010


Author: evancheng
Date: Fri Jun 18 21:36:21 2010
New Revision: 106373

URL: http://llvm.org/viewvc/llvm-project?rev=106373&view=rev
Log:
Ignore dbg_value's.

Modified:
    llvm/trunk/lib/Target/ARM/Thumb2HazardRecognizer.cpp

Modified: llvm/trunk/lib/Target/ARM/Thumb2HazardRecognizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb2HazardRecognizer.cpp?rev=106373&r1=106372&r2=106373&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb2HazardRecognizer.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb2HazardRecognizer.cpp Fri Jun 18 21:36:21 2010
@@ -17,7 +17,7 @@
 Thumb2HazardRecognizer::getHazardType(SUnit *SU) {
   if (ITBlockSize) {
     MachineInstr *MI = SU->getInstr();
-    if (MI != ITBlockMIs[ITBlockSize-1])
+    if (!MI->isDebugValue() && MI != ITBlockMIs[ITBlockSize-1])
       return Hazard;
   }
 
@@ -42,6 +42,8 @@
     MachineBasicBlock::iterator I = MI;
     for (unsigned i = 0; i < ITBlockSize; ++i) {
       ++I;
+      while (I->isDebugValue())
+        ++I;
       ITBlockMIs[ITBlockSize-1-i] = &*I;
     }
   }





More information about the llvm-commits mailing list