[llvm] [SLP]Keep dbg_value of the lanes replaced by extractelement (PR #228937)

Ryan Buchner via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 4 22:50:42 PDT 2026


================
@@ -1506,4 +1507,39 @@ Value *buildBitPack(IRBuilderBase &Builder, Value *X, const BitPackInfo &Info,
   return Builder.CreateBitCast(Packed, IntTy);
 }
 
+void redirectDbgValues(Instruction &Scalar, Value &Ex) {
----------------
bababuck wrote:

Maybe consider renaming to be more generic:
```suggestion
void redirectDbgValues(Instruction &From, Value &To) {
```

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


More information about the llvm-commits mailing list