Oops. Don't forget to align single bb loops.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71363 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2009-05-09 19:18:01 +00:00
parent 60150a3dc4
commit 5374405dc1

View File

@ -248,7 +248,7 @@ static bool HeaderShouldBeAligned(MachineBasicBlock *MBB) {
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;