[PATCH] D124098: Don't replace Undef with null value for Constants

Brock Wyma via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 07:33:21 PDT 2022


bwyma added a comment.

In a similar fashion to how instructions are handled according to Delete an IR-level instruction <https://llvm.org/docs/HowToUpdateDebugInfo.html>, when a constant is destroyed and cannot be RAUW'd, updating the debug information uses of the constant to undef seems like the correct approach. LGTM.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124098/new/

https://reviews.llvm.org/D124098



More information about the llvm-commits mailing list