This is an archive of the discontinued LLVM Phabricator instance.

[musttail] Unify musttail call preceding return checking
ClosedPublic

Authored by lxfind on Nov 3 2020, 10:05 AM.

Details

Summary

There is already an API in BasciBlock that checks and returns the musttail call if it precedes the return instruction.
Use it instead of manually checking in each place.

Diff Detail

Event Timeline

lxfind created this revision.Nov 3 2020, 10:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 3 2020, 10:05 AM
lxfind requested review of this revision.Nov 3 2020, 10:05 AM
rnk accepted this revision.Nov 3 2020, 10:13 AM

lgtm

This revision is now accepted and ready to land.Nov 3 2020, 10:13 AM
This revision was landed with ongoing or failed builds.Nov 3 2020, 11:40 AM
This revision was automatically updated to reflect the committed changes.