[llvm] AMDGPU: Update live intervals in convertToThreeAddress (PR #104610)
Carl Ritson via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 19 02:09:54 PDT 2024
================
@@ -3947,14 +3947,32 @@ MachineInstr *SIInstrInfo::convertToThreeAddress(MachineInstr &MI,
(ST.getConstantBusLimit(Opc) > 1 || !Src0->isReg() ||
!RI.isSGPRReg(MBB.getParent()->getRegInfo(), Src0->getReg()))) {
MachineInstr *DefMI;
- const auto killDef = [&]() -> void {
+ const auto killDef = [&](SlotIndex NewIdx) -> void {
const MachineRegisterInfo &MRI = MBB.getParent()->getRegInfo();
// The only user is the instruction which will be killed.
Register DefReg = DefMI->getOperand(0).getReg();
+
+ if (LIS) {
----------------
perlfu wrote:
Could we maybe just call `shrinkToUses` instead of this code?
https://github.com/llvm/llvm-project/pull/104610
More information about the llvm-commits
mailing list