This is an archive of the discontinued LLVM Phabricator instance.

[DCE] Don't remove non-willreturn calls
ClosedPublic

Authored by nikic on Feb 18 2021, 1:32 PM.

Details

Summary

In both ADCE and BDCE (via DemandedBits) we should not remove instructions that are not guaranteed to return. This issue was pointed out by @fhahn in the recent llvm-dev thread.

Diff Detail

Event Timeline

nikic created this revision.Feb 18 2021, 1:32 PM
nikic requested review of this revision.Feb 18 2021, 1:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 18 2021, 1:32 PM
This revision is now accepted and ready to land.Feb 18 2021, 1:37 PM
This revision was landed with ongoing or failed builds.Feb 19 2021, 3:36 AM
This revision was automatically updated to reflect the committed changes.