This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Prefer to use setKillLocation rather than replacing operands with undef
ClosedPublic

Authored by Orlando on Jan 3 2023, 9:09 AM.

Details

Summary

NFC-ish. There is a functional change but the outputs are semantically identical. Where we might've before replaced one operand with undef (which means "this is a kill location marker") the use of setKillLocation will replace all location operands with undef (which also means "this is a kill location marker").

Related to https://discourse.llvm.org/t/auto-undef-debug-uses-of-a-deleted-value

Diff Detail

Event Timeline

Orlando created this revision.Jan 3 2023, 9:09 AM
Orlando requested review of this revision.Jan 3 2023, 9:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 3 2023, 9:09 AM
StephenTozer accepted this revision.Jan 4 2023, 8:51 AM

Simple and good, LGTM.

llvm/test/DebugInfo/NVPTX/debug-info.ll
109 ↗(On Diff #486006)

Meaningful, or just whitespace sneaking in?

This revision is now accepted and ready to land.Jan 4 2023, 8:51 AM
This revision was landed with ongoing or failed builds.Jan 6 2023, 2:12 AM
This revision was automatically updated to reflect the committed changes.
Orlando added inline comments.Jan 6 2023, 2:13 AM
llvm/test/DebugInfo/NVPTX/debug-info.ll
109 ↗(On Diff #486006)

Whoops, it snuck in and I forgot to change it back before committing. Worth fixing in post commit?