aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/IfConversion.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-06-01 00:55:26 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-06-01 00:55:26 +0000
commitfe57a7e4df512f3a40b8ff463f5362a59908becc (patch)
treec0be5cfad52dac93883bfde5061143a053663c49 /lib/CodeGen/IfConversion.cpp
parent5f70218c7534d7214cc23b7151ab25771bd3151b (diff)
Remove a bogus check. Even terminators in a ifcvt need to be predicated. Unconditional branches can usually be converted to conditional ones.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/IfConversion.cpp')
-rw-r--r--lib/CodeGen/IfConversion.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp
index 80b86b8458..0b2e42f1ff 100644
--- a/lib/CodeGen/IfConversion.cpp
+++ b/lib/CodeGen/IfConversion.cpp
@@ -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();
}
}