[llvm-commits] [llvm] r37891 - /llvm/trunk/lib/Target/TargetInstrInfo.cpp
Evan Cheng
evan.cheng at apple.com
Thu Jul 5 00:06:47 PDT 2007
Author: evancheng
Date: Thu Jul 5 02:06:46 2007
New Revision: 37891
URL: http://llvm.org/viewvc/llvm-project?rev=37891&view=rev
Log:
Do not check isPredicated() on non-predicable instructions.
Modified:
llvm/trunk/lib/Target/TargetInstrInfo.cpp
Modified: llvm/trunk/lib/Target/TargetInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetInstrInfo.cpp?rev=37891&r1=37890&r2=37891&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetInstrInfo.cpp Thu Jul 5 02:06:46 2007
@@ -87,7 +87,10 @@
bool TargetInstrInfo::isUnpredicatedTerminator(const MachineInstr *MI) const {
const TargetInstrDescriptor *TID = MI->getInstrDescriptor();
- if (TID->Flags & M_TERMINATOR_FLAG)
+ if (TID->Flags & M_TERMINATOR_FLAG) {
+ if ((TID->Flags & M_PREDICABLE) == 0)
+ return true;
return !isPredicated(MI);
+}
return false;
}
More information about the llvm-commits
mailing list