forked from OSchip/llvm-project
[AArch64] Set AddPristinesAndCSRs to expandCMP_SWAP LivePhysRegs.
We run after PEI. Found via inspection; no obvious testcase. Follow-up to r266339. llvm-svn: 267780
This commit is contained in:
parent
9e71425f54
commit
5a3bf6a4a9
|
@ -607,7 +607,7 @@ bool AArch64ExpandPseudo::expandCMP_SWAP(
|
|||
MachineOperand &New = MI.getOperand(4);
|
||||
|
||||
LivePhysRegs LiveRegs(&TII->getRegisterInfo());
|
||||
LiveRegs.addLiveOuts(&MBB);
|
||||
LiveRegs.addLiveOuts(&MBB, /*AddPristinesAndCSRs=*/true);
|
||||
for (auto I = std::prev(MBB.end()); I != MBBI; --I)
|
||||
LiveRegs.stepBackward(*I);
|
||||
|
||||
|
@ -685,7 +685,7 @@ bool AArch64ExpandPseudo::expandCMP_SWAP_128(
|
|||
MachineOperand &NewHi = MI.getOperand(7);
|
||||
|
||||
LivePhysRegs LiveRegs(&TII->getRegisterInfo());
|
||||
LiveRegs.addLiveOuts(&MBB);
|
||||
LiveRegs.addLiveOuts(&MBB, /*AddPristinesAndCSRs=*/true);
|
||||
for (auto I = std::prev(MBB.end()); I != MBBI; --I)
|
||||
LiveRegs.stepBackward(*I);
|
||||
|
||||
|
|
Loading…
Reference in New Issue