summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2016-04-27 20:33:05 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2016-04-27 20:33:05 +0000
commit5a3bf6a4a9d3baab28180b3eb5dbd752ebb4cd4d (patch)
treed957f9833460ceab37fcdcdc126064405ddfddbd /llvm/lib
parent9e71425f54731baa3263b7dca0c2badd632db33f (diff)
downloadbcm5719-llvm-5a3bf6a4a9d3baab28180b3eb5dbd752ebb4cd4d.tar.gz
bcm5719-llvm-5a3bf6a4a9d3baab28180b3eb5dbd752ebb4cd4d.zip
[AArch64] Set AddPristinesAndCSRs to expandCMP_SWAP LivePhysRegs.
We run after PEI. Found via inspection; no obvious testcase. Follow-up to r266339. llvm-svn: 267780
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp b/llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
index db6dcc7131d..420d664fbdb 100644
--- a/llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
@@ -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);
OpenPOWER on IntegriCloud