[llvm] r197833 - ARM AnalyzeBranch should ignore DEBUG_VALUES while analyzing terminators.

Lang Hames lhames at gmail.com
Fri Dec 20 12:27:52 PST 2013


Author: lhames
Date: Fri Dec 20 14:27:51 2013
New Revision: 197833

URL: http://llvm.org/viewvc/llvm-project?rev=197833&view=rev
Log:
ARM AnalyzeBranch should ignore DEBUG_VALUES while analyzing terminators.

Found by inspection by Julien Lerouge. Thanks Julian!

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

Modified: llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp?rev=197833&r1=197832&r2=197833&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp Fri Dec 20 14:27:51 2013
@@ -283,7 +283,7 @@ ARMBaseInstrInfo::AnalyzeBranch(MachineB
 
   // Walk backwards from the end of the basic block until the branch is
   // analyzed or we give up.
-  while (isPredicated(I) || I->isTerminator()) {
+  while (isPredicated(I) || I->isTerminator() || I->isDebugValue()) {
 
     // Flag to be raised on unanalyzeable instructions. This is useful in cases
     // where we want to clean up on the end of the basic block before we bail





More information about the llvm-commits mailing list