[llvm] [LiveDebugVariables] Stop holding SlotIndexes for erased instructions (PR #224467)
Petar Jovanovic via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 27 18:14:45 PDT 2026
================
@@ -0,0 +1,57 @@
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -O3 -stop-after=virtregrewriter,2 < %s | FileCheck %s
+
+; LiveDebugVariables is built before the SGPR allocator and still holds
+; SlotIndexes when the VGPR allocator spills %v1 several passes later. The two
+; intervals recorded for %v1 around the spill resolve onto the same position, so
+; only one DBG_VALUE belongs there. Without canonicalizeIndexes() each interval
+; emits its own and the last CHECK-NEXT lands on the duplicate.
----------------
petar-jovanovic wrote:
Applied both. Thanks.
https://github.com/llvm/llvm-project/pull/224467
More information about the llvm-commits
mailing list