This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Instruction sinking: fix check for function terminating block
ClosedPublic

Authored by lebedev.ri on Jan 20 2022, 10:46 AM.

Details

Summary

Checking for specific function terminating opcodes
means we don't handle other non-hardcoded ones :)

This should probably be generalized to something
similar to the IsBlockFollowedByDeoptOrUnreachable().

Diff Detail

Event Timeline

lebedev.ri created this revision.Jan 20 2022, 10:46 AM
lebedev.ri requested review of this revision.Jan 20 2022, 10:46 AM
spatel accepted this revision.Jan 20 2022, 10:56 AM

LGTM

This revision is now accepted and ready to land.Jan 20 2022, 10:56 AM
This revision was landed with ongoing or failed builds.Jan 20 2022, 11:42 AM
This revision was automatically updated to reflect the committed changes.

LGTM

Thank you for the review.