mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-11 23:16:20 +00:00
Make sure that BRCOND branches can be converted into long branches too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a0e3e9474f
commit
27499e3f1b
@ -107,7 +107,7 @@ namespace {
|
||||
// Branches can take an immediate operand. This is used by the branch
|
||||
// selection pass to print $+8, an eight byte displacement from the PC.
|
||||
if (MI->getOperand(OpNo).isImmediate()) {
|
||||
O << "$+" << MI->getOperand(OpNo).getImmedValue() << '\n';
|
||||
O << "$+" << MI->getOperand(OpNo).getImmedValue();
|
||||
} else {
|
||||
printOp(MI->getOperand(OpNo),
|
||||
TM.getInstrInfo()->isCall(MI->getOpcode()));
|
||||
|
@ -1022,7 +1022,9 @@ void ISel::SelectBranchCC(SDOperand N)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
BuildMI(BB, Opc, 2).addReg(PPC::CR0).addMBB(Dest);
|
||||
BuildMI(BB, PPC::COND_BRANCH, 4).addReg(PPC::CR0).addImm(Opc)
|
||||
.addMBB(Dest).addMBB(It);
|
||||
//BuildMI(BB, Opc, 2).addReg(PPC::CR0).addMBB(Dest);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user