The following patch - (https://reviews.llvm.org/D117300) introduced null's into the debug information and those nulls are expected to be undef values. The RAUW debug info handlers are for instructions, not constants and the debug information expects the value to be undef and not null. This patch tries to fix this behavior by not replacing undef with null value in Constants for debug info metadata.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
In a similar fashion to how instructions are handled according to Delete an IR-level instruction, 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.
Comment Actions
Good fix, LGTM.
llvm/test/DebugInfo/X86/undef-type-md.ll | ||
---|---|---|
22 | Nit, can this attribute be removed? |
Comment Actions
Looks like this was submitted as e83543f8c2ef
@ykhatav it looks like it wasn't closed automatically because the commit message was all one line. Please make sure the commit message is properly structured in the future.
Nit, can this attribute be removed?