[llvm] [AMDGPU] Reset kill flags for multiple uses of SDWAInst Ops (PR #97135)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 28 22:30:56 PDT 2024


================
@@ -1184,8 +1184,17 @@ bool SIPeepholeSDWA::convertToSDWA(MachineInstr &MI,
     if (PotentialMatches.count(Operand->getParentInst()) == 0)
       Converted |= Operand->convertToSDWA(*SDWAInst, TII);
   }
+
   if (Converted) {
     ConvertedInstructions.push_back(SDWAInst);
+    auto &MRI = SDWAInst->getParent()->getParent()->getRegInfo();
----------------
arsenm wrote:

MRI is already a class member 

https://github.com/llvm/llvm-project/pull/97135


More information about the llvm-commits mailing list