[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaInstrInfo.cpp
Evan Cheng
evan.cheng at apple.com
Fri Jun 8 15:00:31 PDT 2007
Changes in directory llvm/lib/Target/Alpha:
AlphaInstrInfo.cpp updated: 1.19 -> 1.20
---
Log message:
Add a utility routine to check for unpredicated terminator instruction.
---
Diffs of the changes: (+3 -3)
AlphaInstrInfo.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaInstrInfo.cpp
diff -u llvm/lib/Target/Alpha/AlphaInstrInfo.cpp:1.19 llvm/lib/Target/Alpha/AlphaInstrInfo.cpp:1.20
--- llvm/lib/Target/Alpha/AlphaInstrInfo.cpp:1.19 Mon May 21 13:44:17 2007
+++ llvm/lib/Target/Alpha/AlphaInstrInfo.cpp Fri Jun 8 16:59:56 2007
@@ -158,14 +158,14 @@
std::vector<MachineOperand> &Cond) const {
// 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 (LastInst->getOpcode() == Alpha::BR) {
TBB = LastInst->getOperand(0).getMachineBasicBlock();
return false;
@@ -186,7 +186,7 @@
// If there are three terminators, we don't know what sort of block this is.
if (SecondLastInst && I != MBB.begin() &&
- isTerminatorInstr((--I)->getOpcode()))
+ isUnpredicatedTerminator(--I))
return true;
// If the block ends with Alpha::BR and Alpha::COND_BRANCH_*, handle it.
More information about the llvm-commits
mailing list