[llvm-commits] CVS: llvm/lib/Target/TargetInstrInfo.cpp
Evan Cheng
evan.cheng at apple.com
Fri Jun 8 15:00:30 PDT 2007
Changes in directory llvm/lib/Target:
TargetInstrInfo.cpp updated: 1.32 -> 1.33
---
Log message:
Add a utility routine to check for unpredicated terminator instruction.
---
Diffs of the changes: (+7 -0)
TargetInstrInfo.cpp | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/lib/Target/TargetInstrInfo.cpp
diff -u llvm/lib/Target/TargetInstrInfo.cpp:1.32 llvm/lib/Target/TargetInstrInfo.cpp:1.33
--- llvm/lib/Target/TargetInstrInfo.cpp:1.32 Tue May 29 13:35:22 2007
+++ llvm/lib/Target/TargetInstrInfo.cpp Fri Jun 8 16:59:56 2007
@@ -84,3 +84,10 @@
}
return MadeChange;
}
+
+bool TargetInstrInfo::isUnpredicatedTerminator(const MachineInstr *MI) const {
+ const TargetInstrDescriptor *TID = MI->getInstrDescriptor();
+ if (TID->Flags & M_TERMINATOR_FLAG)
+ return !isPredicated(MI);
+ return false;
+}
More information about the llvm-commits
mailing list