diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-06-15 19:06:07 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-06-15 19:06:07 +0000 |
commit | 234a90e83ea136618ac8063e218925f35737811c (patch) | |
tree | 4b7157c1ca669e46965e55dd15ba1995bac926e4 /llvm/lib/CodeGen/IfConversion.cpp | |
parent | 32312ad370dd7422d199f11a30768078bc297144 (diff) | |
download | bcm5719-llvm-234a90e83ea136618ac8063e218925f35737811c.tar.gz bcm5719-llvm-234a90e83ea136618ac8063e218925f35737811c.zip |
MachineInstr::isPredicable() is no longer needed.
llvm-svn: 37599
Diffstat (limited to 'llvm/lib/CodeGen/IfConversion.cpp')
-rw-r--r-- | llvm/lib/CodeGen/IfConversion.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp index 93388df8542..62e9be75523 100644 --- a/llvm/lib/CodeGen/IfConversion.cpp +++ b/llvm/lib/CodeGen/IfConversion.cpp @@ -447,7 +447,7 @@ void IfConverter::ScanInstructions(BBInfo &BBI) { if (TID->Flags & M_CLOBBERS_PRED) BBI.ClobbersPred = true; - if (!I->isPredicable()) { + if ((TID->Flags & M_PREDICABLE) == 0) { BBI.IsUnpredicable = true; return; } @@ -881,7 +881,8 @@ bool IfConverter::IfConvertDiamond(BBInfo &BBI) { while (TT != BBI.TrueBB->end() && FT != BBI.FalseBB->end()) { if (TT->isIdenticalTo(FT)) Dups.push_back(TT); // Will erase these later. - else if (!TT->isPredicable() && !FT->isPredicable()) + else if ((TT->getInstrDescriptor()->Flags & M_PREDICABLE) == 0 || + (FT->getInstrDescriptor()->Flags & M_PREDICABLE) == 0) return false; // Can't if-convert. Abort! ++TT; ++FT; @@ -890,15 +891,13 @@ bool IfConverter::IfConvertDiamond(BBInfo &BBI) { // One of the two pathes have more terminators, make sure they are // all predicable. while (TT != BBI.TrueBB->end()) { - if (!TT->isPredicable()) { + if ((TT->getInstrDescriptor()->Flags & M_PREDICABLE) == 0) return false; // Can't if-convert. Abort! - } ++TT; } while (FT != BBI.FalseBB->end()) { - if (!FT->isPredicable()) { + if ((FT->getInstrDescriptor()->Flags & M_PREDICABLE) == 0) return false; // Can't if-convert. Abort! - } ++FT; } } |