[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.cpp
Evan Cheng
evan.cheng at apple.com
Fri Jun 8 15:00:30 PDT 2007
Changes in directory llvm/lib/Target/X86:
X86InstrInfo.cpp updated: 1.87 -> 1.88
---
Log message:
Add a utility routine to check for unpredicated terminator instruction.
---
Diffs of the changes: (+2 -2)
X86InstrInfo.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/X86/X86InstrInfo.cpp
diff -u llvm/lib/Target/X86/X86InstrInfo.cpp:1.87 llvm/lib/Target/X86/X86InstrInfo.cpp:1.88
--- llvm/lib/Target/X86/X86InstrInfo.cpp:1.87 Mon May 21 13:43:02 2007
+++ llvm/lib/Target/X86/X86InstrInfo.cpp Fri Jun 8 16:59:56 2007
@@ -382,14 +382,14 @@
// If the block has no terminators, it just falls into the block after it.
MachineBasicBlock::iterator I = MBB.end();
- if (I == MBB.begin() || !isTerminatorInstr((--I)->getOpcode()))
+ if (I == MBB.begin() || !isUnpredicatedTerminator(--I))
return false;
// Get the last instruction in the block.
MachineInstr *LastInst = I;
// If there is only one terminator instruction, process it.
- if (I == MBB.begin() || !isTerminatorInstr((--I)->getOpcode())) {
+ if (I == MBB.begin() || !isUnpredicatedTerminator(--I)) {
if (!isBranch(LastInst->getOpcode()))
return true;
More information about the llvm-commits
mailing list