1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Remove a bogus check. Even terminators in a ifcvt need to be predicated. Unconditional branches can usually be converted to conditional ones.

llvm-svn: 37380
This commit is contained in:
Evan Cheng 2007-06-01 00:55:26 +00:00
parent 7c081d0d02
commit 8e188afada

View File

@ -283,8 +283,6 @@ void IfConverter::FeasibilityAnalysis(BBInfo &BBI,
for (MachineBasicBlock::iterator I = BBI.BB->begin(), E = BBI.BB->end();
I != E; ++I) {
// TODO: check if instruction clobbers predicate.
if (TII->isTerminatorInstr(I->getOpcode()))
break;
if (!I->isPredicable())
return;
}
@ -654,7 +652,7 @@ void IfConverter::PredicateBlock(BBInfo &BBI,
if (TII->isPredicated(MI))
continue;
if (!TII->PredicateInstruction(MI, Cond)) {
cerr << "Unable to predication " << *I << "!\n";
cerr << "Unable to predicate " << *I << "!\n";
abort();
}
}