diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-06-01 00:55:26 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-06-01 00:55:26 +0000 |
commit | 95c7917d92c483c4348f6daf7cc58f105282fda2 (patch) | |
tree | f6b21de80da3177bc96406ec1aa6848fd2535b0d /llvm/lib/CodeGen/IfConversion.cpp | |
parent | 20e05997f5405e000c74758370e77091292c2795 (diff) | |
download | bcm5719-llvm-95c7917d92c483c4348f6daf7cc58f105282fda2.tar.gz bcm5719-llvm-95c7917d92c483c4348f6daf7cc58f105282fda2.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/IfConversion.cpp')
-rw-r--r-- | llvm/lib/CodeGen/IfConversion.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp index 80b86b84585..0b2e42f1ff8 100644 --- a/llvm/lib/CodeGen/IfConversion.cpp +++ b/llvm/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(); } } |