diff options
author | Eric Christopher <echristo@apple.com> | 2010-11-03 04:29:11 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-11-03 04:29:11 +0000 |
commit | 000cf708effc247ff1e609d0703324b21585a4af (patch) | |
tree | fd1fa67073445eaedf5d966baecd360de13b4219 /lib | |
parent | 92b5a2eb1646b3c1173a5ff3c0073f24ed5ee6a4 (diff) | |
download | external_llvm-000cf708effc247ff1e609d0703324b21585a4af.zip external_llvm-000cf708effc247ff1e609d0703324b21585a4af.tar.gz external_llvm-000cf708effc247ff1e609d0703324b21585a4af.tar.bz2 |
Invert these branches by default, it makes assembly comparisons a little
easier to read.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index d46ed95..110aa98 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -1014,11 +1014,11 @@ bool ARMFastISel::SelectBranch(const Instruction *I) { // Re-set the flags just in case. unsigned CmpOpc = isThumb ? ARM::t2CMPri : ARM::CMPri; AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(CmpOpc)) - .addReg(CmpReg).addImm(1)); + .addReg(CmpReg).addImm(0)); unsigned BrOpc = isThumb ? ARM::t2Bcc : ARM::Bcc; BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(BrOpc)) - .addMBB(TBB).addImm(ARMCC::EQ).addReg(ARM::CPSR); + .addMBB(TBB).addImm(ARMCC::NE).addReg(ARM::CPSR); FastEmitBranch(FBB, DL); FuncInfo.MBB->addSuccessor(TBB); return true; |