Issue 138684
Summary [DebugInfo][LICM] Debug value info loss caused by removing dead instructions without salvaging
Labels debuginfo
Assignees
Reporter Apochens
    1. Removing the dead instruction without salvaging the debug value info in `hoistAdd`:

https://github.com/llvm/llvm-project/blob/393c783a10052b14d2b76b3ee930b3d83e7f1a16/llvm/lib/Transforms/Scalar/LICM.cpp#L2597

**Code example:** https://godbolt.org/z/TbjdP5Y1d

2. Removing the dead instruction without salvaging the debug value info in `hoistSub`:

https://github.com/llvm/llvm-project/blob/393c783a10052b14d2b76b3ee930b3d83e7f1a16/llvm/lib/Transforms/Scalar/LICM.cpp#L2675

**Code example:** https://godbolt.org/z/h3veE8fj9

3. Removing the dead instruction without salvaging the debug value info in `hoistBOAssociation`:

https://github.com/llvm/llvm-project/blob/393c783a10052b14d2b76b3ee930b3d83e7f1a16/llvm/lib/Transforms/Scalar/LICM.cpp#L2882-L2883

**Code example:** https://godbolt.org/z/9nE7Tob6E
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to