summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMInstrInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-07-06 23:23:19 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-07-06 23:23:19 +0000
commit3650b2c278af8740a3e727b2e7e91f6df777fe33 (patch)
treeee726ed332082e885d0d6a99e108d30d254fa13d /llvm/lib/Target/ARM/ARMInstrInfo.cpp
parent76a97c5f8a7db07693eb6a09d8f42fbc0df099cc (diff)
downloadbcm5719-llvm-3650b2c278af8740a3e727b2e7e91f6df777fe33.tar.gz
bcm5719-llvm-3650b2c278af8740a3e727b2e7e91f6df777fe33.zip
Incorrect check.
llvm-svn: 37962
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMInstrInfo.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.cpp b/llvm/lib/Target/ARM/ARMInstrInfo.cpp
index 5af89b742e3..70e4d50163f 100644
--- a/llvm/lib/Target/ARM/ARMInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMInstrInfo.cpp
@@ -312,8 +312,7 @@ bool ARMInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB,MachineBasicBlock *&TBB,
// If there is only one terminator instruction, process it.
unsigned LastOpc = LastInst->getOpcode();
- if (I == MBB.begin() ||
- isPredicated(--I) || !isUnpredicatedTerminator(I)) {
+ if (I == MBB.begin() || !isUnpredicatedTerminator(--I)) {
if (LastOpc == ARM::B || LastOpc == ARM::tB) {
TBB = LastInst->getOperand(0).getMachineBasicBlock();
return false;
@@ -332,8 +331,7 @@ bool ARMInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB,MachineBasicBlock *&TBB,
MachineInstr *SecondLastInst = I;
// If there are three terminators, we don't know what sort of block this is.
- if (SecondLastInst && I != MBB.begin() &&
- !isPredicated(--I) && isUnpredicatedTerminator(I))
+ if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(--I))
return true;
// If the block ends with ARM::B/ARM::tB and a ARM::Bcc/ARM::tBcc, handle it.
OpenPOWER on IntegriCloud