mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 21:29:28 +00:00
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
This commit is contained in:
parent
92b5a2eb16
commit
000cf708ef
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user