This is an archive of the discontinued LLVM Phabricator instance.

[DIE] Remove DeadInstEliminationPass
ClosedPublic

Authored by aeubanks on Sep 18 2020, 1:02 PM.

Details

Summary

This pass is like DeadCodeEliminationPass, but only does one pass
through a function instead of iterating on users of eliminated
instructions.

DeadCodeEliminationPass should be used in all cases.

Diff Detail

Event Timeline

aeubanks created this revision.Sep 18 2020, 1:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 18 2020, 1:02 PM
aeubanks requested review of this revision.Sep 18 2020, 1:02 PM
aeubanks updated this revision to Diff 292882.Sep 18 2020, 1:05 PM

Add back comment

asbirlea accepted this revision.Sep 21 2020, 11:44 AM

This looks like a good cleanup. It's possible for DIE to be useful as a "light-weight" DCE, but that could also be achieved by adding a flag to DCE.
Unless there are folks that come forward that they need this for other reasons, I think it's good to clean the codebase.

This revision is now accepted and ready to land.Sep 21 2020, 11:44 AM
This revision was automatically updated to reflect the committed changes.