diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-04-27 20:33:07 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-04-27 20:33:07 +0000 |
commit | 65572afea88a9c8211df5ecbcf52469d90b4ea4f (patch) | |
tree | 388082eba7a7dc1e5fa233bc99eb566e3c6779ba /llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp | |
parent | 5a3bf6a4a9d3baab28180b3eb5dbd752ebb4cd4d (diff) | |
download | bcm5719-llvm-65572afea88a9c8211df5ecbcf52469d90b4ea4f.tar.gz bcm5719-llvm-65572afea88a9c8211df5ecbcf52469d90b4ea4f.zip |
[ARM] Set AddPristinesAndCSRs to expandCMP_SWAP LivePhysRegs.
We run after PEI.
Found via inspection; no obvious testcase.
Follow-up to r266679.
llvm-svn: 267781
Diffstat (limited to 'llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp index 1be3724805e..81d58ead11e 100644 --- a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp +++ b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp @@ -775,7 +775,7 @@ bool ARMExpandPseudo::ExpandCMP_SWAP(MachineBasicBlock &MBB, 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); @@ -897,7 +897,7 @@ bool ARMExpandPseudo::ExpandCMP_SWAP_64(MachineBasicBlock &MBB, unsigned DesiredHi = TRI->getSubReg(Desired.getReg(), ARM::gsub_1); 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); |