[llvm] [AMDGPU] Don't merge M0 initializations across calls that clobber M0 (PR #221963)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 04:59:32 PDT 2026


================
@@ -458,6 +458,7 @@ getFirstNonPrologue(MachineBasicBlock *MBB, const TargetInstrInfo *TII) {
 // SGPR. A VGPR cannot be processed since we cannot guarantee vector
 // executioon.
 static bool hoistAndMergeSGPRInits(unsigned Reg,
+                                   ArrayRef<MachineInstr *> RegMaskInstrs,
----------------
arsenm wrote:

Can you just check MRI.getUsedPhysRegsMask() instead of collecting your own set 

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


More information about the llvm-commits mailing list