summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-09-14 22:25:16 +0000
committerGabor Greif <ggreif@gmail.com>2010-09-14 22:25:16 +0000
commitb54e9387abd1d2e46c48d9b04c0155de629a6623 (patch)
tree3aa1b1b6eaedbe73c932d583ddf9ce88cfc6c466 /llvm/lib
parentb523be2bb34fc2c3e15d2666e90b060e71adf954 (diff)
downloadbcm5719-llvm-b54e9387abd1d2e46c48d9b04c0155de629a6623.tar.gz
bcm5719-llvm-b54e9387abd1d2e46c48d9b04c0155de629a6623.zip
an attempt to salvage the darwin9-powerpc buildbot, which could be miscompiling this line
llvm-svn: 113876
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
index 05870b800c6..80c914342c0 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -1373,7 +1373,7 @@ AnalyzeCompare(const MachineInstr *MI, unsigned &SrcReg, int &CmpValue) const {
CmpValue = MI->getOperand(1).getImm();
return true;
case ARM::TSTri: {
- if (MI->getParent()->begin() == MachineBasicBlock::const_iterator(MI))
+ if (&*MI->getParent()->begin() == MI)
return false;
const MachineInstr *AND = llvm::prior(MI);
if (AND->getOpcode() != ARM::ANDri)
@@ -1385,6 +1385,7 @@ AnalyzeCompare(const MachineInstr *MI, unsigned &SrcReg, int &CmpValue) const {
return true;
}
}
+ break;
}
return false;
OpenPOWER on IntegriCloud