mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ea783f13a
commit
8781466176
@ -133,12 +133,12 @@ bool PPCBSel::runOnMachineFunction(MachineFunction &Fn) {
|
|||||||
|
|
||||||
MachineBasicBlock::iterator MBBJ;
|
MachineBasicBlock::iterator MBBJ;
|
||||||
if (Displacement >= -32768 && Displacement <= 32767) {
|
if (Displacement >= -32768 && Displacement <= 32767) {
|
||||||
MBBJ = BuildMI(*MBB, MBBJ, Opcode, 2).addReg(CRReg).addMBB(DestMBB);
|
MBBJ = BuildMI(*MBB, MBBI, Opcode, 2).addReg(CRReg).addMBB(DestMBB);
|
||||||
} else {
|
} else {
|
||||||
// Long branch, skip next branch instruction (i.e. $PC+8).
|
// Long branch, skip next branch instruction (i.e. $PC+8).
|
||||||
++NumExpanded;
|
++NumExpanded;
|
||||||
BuildMI(*MBB, MBBJ, Inverted, 2).addReg(CRReg).addImm(2);
|
BuildMI(*MBB, MBBJ, Inverted, 2).addReg(CRReg).addImm(2);
|
||||||
MBBJ = BuildMI(*MBB, MBBJ, PPC::B, 1).addMBB(DestMBB);
|
MBBJ = BuildMI(*MBB, MBBI, PPC::B, 1).addMBB(DestMBB);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Erase the psuedo COND_BRANCH instruction, and then back up the
|
// Erase the psuedo COND_BRANCH instruction, and then back up the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user