HomePhabricator

[musttail] Unify musttail call preceding return checking

Authored by lxfind on Nov 3 2020, 11:39 AM.

Description

[musttail] Unify musttail call preceding return checking

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

Differential Revision: https://reviews.llvm.org/D90693

Details