This is an archive of the discontinued LLVM Phabricator instance.

[BranchFolding] Remove what appears to be dead code
ClosedPublic

Authored by craig.topper on Jan 28 2019, 2:14 PM.

Details

Summary

This code tries to handle the case where IBB is an EHPad, but there's an earlier check that uses PBB->hasEHPadSuccessor(). Where PBB is a predecessor of IBB. The hasEHPadSuccessor function would have visited IBB and seen that it was an EHPad and returned false. This would prevent us from reaching this code with IBB as an EHPad.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Jan 28 2019, 2:14 PM
rnk accepted this revision.Feb 6 2019, 1:01 PM

lgtm

Looks like this code was originally added in rL37427 (ancient) and made dead in rL143001.

This revision is now accepted and ready to land.Feb 6 2019, 1:01 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 6 2019, 10:21 PM