[llvm] [CodeGen] Perform early program return instead of using indirect branch (PR #102127)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 12:34:22 PDT 2024


arsenm wrote:

> The RB (BB'ssuccessor) should be post dominating i.e. the control should reach RB from all possible path from BB till the graph end.

Tail duplication can help if the return isn't a post dominator
 
We need IR test examples to determine if there is any need to do anything here. There are several interacting MIR passes, and we only care about the net result 

https://github.com/llvm/llvm-project/pull/102127


More information about the llvm-commits mailing list