[llvm-branch-commits] [llvm-branch] r71369 - /llvm/branches/Apple/Dib/lib/CodeGen/CodePlacementOpt.cpp
Bill Wendling
isanbard at gmail.com
Sat May 9 15:44:09 PDT 2009
Author: void
Date: Sat May 9 17:44:07 2009
New Revision: 71369
URL: http://llvm.org/viewvc/llvm-project?rev=71369&view=rev
Log:
--- Merging r71363 into '.':
U lib/CodeGen/CodePlacementOpt.cpp
Oops. Don't forget to align single bb loops.
Modified:
llvm/branches/Apple/Dib/lib/CodeGen/CodePlacementOpt.cpp
Modified: llvm/branches/Apple/Dib/lib/CodeGen/CodePlacementOpt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/CodeGen/CodePlacementOpt.cpp?rev=71369&r1=71368&r2=71369&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/lib/CodeGen/CodePlacementOpt.cpp (original)
+++ llvm/branches/Apple/Dib/lib/CodeGen/CodePlacementOpt.cpp Sat May 9 17:44:07 2009
@@ -247,7 +247,7 @@
for (MachineBasicBlock::pred_iterator PI = MBB->pred_begin(),
PE = MBB->pred_end(); PI != PE; ++PI) {
MachineBasicBlock *PredMBB = *PI;
- if (PredMBB->getNumber() > MBB->getNumber())
+ if (PredMBB == MBB || PredMBB->getNumber() > MBB->getNumber())
return true;
}
return false;
More information about the llvm-branch-commits
mailing list