[llvm] [1/2][AMDGPU] Fixed crash due to virtual register defs not dominating uses (PR #198472)

Dhruva Chakrabarti via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 10 09:32:58 PDT 2026


================
@@ -127,6 +134,15 @@ class AMDGPURewriteAGPRCopyMFMAImpl {
   void collectSpillIndexUses(ArrayRef<LiveInterval *> StackIntervals,
                              SpillReferenceMap &Map) const;
 
+  /// For each segment in the stack slot's LiveInterval whose start does not
+  /// correspond to a spill store, insert an IMPLICIT_DEF of \p NewVReg.
+  /// This handles a control flow path where there is no spill store dominating
+  /// a spill reload. Returns false if any segment start cannot be resolved
+  /// (caller should bail out and not unspill).
+  bool insertImplicitDefsForLiveSegments(LiveInterval &StackLI, int Slot,
----------------
dhruvachak wrote:

Removed in this version.

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


More information about the llvm-commits mailing list