mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[SystemZ] Bugfix in tieOpsIfNeeded()
This function did a check which was broken to see if an opcode requires op0 and op1 to be tied. By chance this is NFC. Review: Ulrich Weigand
This commit is contained in:
parent
edd888ac89
commit
e127891baf
@ -65,7 +65,7 @@ SystemZShortenInst::SystemZShortenInst(const SystemZTargetMachine &tm)
|
||||
|
||||
// Tie operands if MI has become a two-address instruction.
|
||||
static void tieOpsIfNeeded(MachineInstr &MI) {
|
||||
if (MI.getDesc().getOperandConstraint(0, MCOI::TIED_TO) &&
|
||||
if (MI.getDesc().getOperandConstraint(1, MCOI::TIED_TO) == 0 &&
|
||||
!MI.getOperand(0).isTied())
|
||||
MI.tieOperands(0, 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user