mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 11:19:09 +00:00
Use existing function.
llvm-svn: 139055
This commit is contained in:
parent
68afe301fc
commit
6d5d51f687
@ -11633,13 +11633,9 @@ X86TargetLowering::EmitLoweredSelect(MachineInstr *MI,
|
|||||||
|
|
||||||
// If the EFLAGS register isn't dead in the terminator, then claim that it's
|
// If the EFLAGS register isn't dead in the terminator, then claim that it's
|
||||||
// live into the sink and copy blocks.
|
// live into the sink and copy blocks.
|
||||||
for (unsigned I = 0, E = MI->getNumOperands(); I != E; ++I) {
|
if (!MI->killsRegister(X86::EFLAGS)) {
|
||||||
const MachineOperand &MO = MI->getOperand(I);
|
copy0MBB->addLiveIn(X86::EFLAGS);
|
||||||
if (!MO.isReg() || !MO.isUse() || MO.isKill()) continue;
|
sinkMBB->addLiveIn(X86::EFLAGS);
|
||||||
unsigned Reg = MO.getReg();
|
|
||||||
if (Reg != X86::EFLAGS) continue;
|
|
||||||
copy0MBB->addLiveIn(Reg);
|
|
||||||
sinkMBB->addLiveIn(Reg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transfer the remainder of BB and its successor edges to sinkMBB.
|
// Transfer the remainder of BB and its successor edges to sinkMBB.
|
||||||
|
Loading…
Reference in New Issue
Block a user