This is an archive of the discontinued LLVM Phabricator instance.

[ADCE] Preserve MemorySSA if only debug instructions are removed
ClosedPublic

Authored by uabelho on Mar 7 2023, 12:36 AM.

Details

Summary

As we've seen in
https://github.com/llvm/llvm-project/issues/58285
throwing away MemorySSA when only debug instructions are removed can lead
to different code when debug info is present or not present.

This is the second attempt at fixing the problem. The first one was
https://reviews.llvm.org/D145051
which was reverted due to a 15% compile time regression for tramp3d-v4
in NewPM-ReleaseLTO-g.

Diff Detail

Event Timeline

uabelho created this revision.Mar 7 2023, 12:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 7 2023, 12:36 AM
uabelho requested review of this revision.Mar 7 2023, 12:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 7 2023, 12:36 AM
aprantl accepted this revision.Mar 7 2023, 9:19 AM
This revision is now accepted and ready to land.Mar 7 2023, 9:19 AM
aeubanks accepted this revision.Mar 7 2023, 9:22 AM