mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Simplify code, no functionality change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31097 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
54108068b7
commit
879d09cf13
@ -253,12 +253,10 @@ void PPCInstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
|
||||
return;
|
||||
}
|
||||
|
||||
// Conditional branch
|
||||
// Two-way Conditional Branch.
|
||||
BuildMI(&MBB, PPC::COND_BRANCH, 3)
|
||||
.addReg(Cond[0].getReg()).addImm(Cond[1].getImm()).addMBB(TBB);
|
||||
|
||||
if (FBB) // Two-way branch.
|
||||
BuildMI(&MBB, PPC::B, 1).addMBB(FBB);
|
||||
BuildMI(&MBB, PPC::B, 1).addMBB(FBB);
|
||||
}
|
||||
|
||||
bool PPCInstrInfo::
|
||||
|
@ -389,12 +389,10 @@ void X86InstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
|
||||
return;
|
||||
}
|
||||
|
||||
// Conditional branch.
|
||||
// Two-way Conditional branch.
|
||||
unsigned Opc = GetCondBranchFromCond((X86::CondCode)Cond[0].getImm());
|
||||
BuildMI(&MBB, Opc, 1).addMBB(TBB);
|
||||
|
||||
if (FBB) // Two-way branch.
|
||||
BuildMI(&MBB, X86::JMP, 1).addMBB(FBB);
|
||||
BuildMI(&MBB, X86::JMP, 1).addMBB(FBB);
|
||||
}
|
||||
|
||||
bool X86InstrInfo::
|
||||
|
Loading…
Reference in New Issue
Block a user