[PATCH] D36504: [CodeGenPrepare][WIP] Convert uncond. branch to return into a return to help with shrink-wrapping
Sean Fertile via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 1 12:54:25 PDT 2017
sfertile added a comment.
In https://reviews.llvm.org/D36504#909077, @kparzysz wrote:
> Isn't tail duplication a better place to do this?
So I attempted this in the PreRA tail-duplication pass. Unfortunately by the time we get there the opportunity is gone. If we do not duplicate the return then CodegenPrepare will end up deleting the `for.cond.cleanup.loopexit` block and we loose the shrink wrapping opportunity.
Repository:
rL LLVM
https://reviews.llvm.org/D36504
More information about the llvm-commits
mailing list