This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo][InstCombine] Fix missing source and variable locations after foldOpIntoPhi
ClosedPublic

Authored by Orlando on Apr 27 2023, 5:19 AM.

Diff Detail

Event Timeline

Orlando created this revision.Apr 27 2023, 5:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2023, 5:19 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
Orlando requested review of this revision.Apr 27 2023, 5:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2023, 5:19 AM
fdeazeve accepted this revision as: fdeazeve.Apr 27 2023, 5:39 AM
fdeazeve added a subscriber: fdeazeve.

Nice catch!

llvm/test/DebugInfo/X86/instcombine-fold-cast-into-phi.ll
8

Was the double ; intentional here?

8–9

nit: it's probably better to avoid hardcoding the virtual register names

31

I think this is not used anywhere

49

Not sure if worth it, but we could give this an unusual line number and check that the converted phi has a location with that same number.

This revision is now accepted and ready to land.Apr 27 2023, 5:39 AM
This revision was landed with ongoing or failed builds.Apr 27 2023, 5:56 AM
This revision was automatically updated to reflect the committed changes.
Orlando marked 4 inline comments as done.

Nice catch!

This issue was discovered using dexter. Thanks for the review! (comments addressed before landing)