[PATCH] D28879: [AMDGPU] Add exec copy to LiveIntervals in SILowerControlFlow::emitElse
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 19 13:37:30 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL292521: [AMDGPU] Add exec copy to LiveIntervals in SILowerControlFlow::emitElse (authored by rampitec).
Changed prior to commit:
https://reviews.llvm.org/D28879?vs=84906&id=85020#toc
Repository:
rL LLVM
https://reviews.llvm.org/D28879
Files:
llvm/trunk/lib/Target/AMDGPU/SILowerControlFlow.cpp
Index: llvm/trunk/lib/Target/AMDGPU/SILowerControlFlow.cpp
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/SILowerControlFlow.cpp
+++ llvm/trunk/lib/Target/AMDGPU/SILowerControlFlow.cpp
@@ -219,7 +219,8 @@
// tied. In order to correctly tie the registers, split this into a copy of
// the src like it does.
unsigned CopyReg = MRI->createVirtualRegister(&AMDGPU::SReg_64RegClass);
- BuildMI(MBB, Start, DL, TII->get(AMDGPU::COPY), CopyReg)
+ MachineInstr *CopyExec =
+ BuildMI(MBB, Start, DL, TII->get(AMDGPU::COPY), CopyReg)
.add(MI.getOperand(1)); // Saved EXEC
// This must be inserted before phis and any spill code inserted before the
@@ -261,6 +262,7 @@
LIS->RemoveMachineInstrFromMaps(MI);
MI.eraseFromParent();
+ LIS->InsertMachineInstrInMaps(*CopyExec);
LIS->InsertMachineInstrInMaps(*OrSaveExec);
LIS->InsertMachineInstrInMaps(*Xor);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28879.85020.patch
Type: text/x-patch
Size: 939 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170119/6f03c956/attachment.bin>
More information about the llvm-commits
mailing list