Split out and generalize tailcall IR validation/tailcall profile adjustments (#69941)
* Split the IR validation after tailcalls into a separate function. Previously it was intertwined with updating of profile weights for follow-up blocks. * Generalize the validation to use a tree walk and handle more cases. This fixes an assertion failure seen in some PGO runs. * Generalize the updating of profile weights for follow-up blocks. Previously this was only updating profile weights for one follow up blocks, but there can be an arbitrary number of successor blocks due to inlining. Fix #69939
Showing
想要评论请 注册 或 登录