[PATCH] D35411: [SimplifyCFG] Defer folding unconditional branches to LateSimplifyCFG if it can destroy canonical loop structure.

Balaram Makam via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 13:23:43 PDT 2017


bmakam added a comment.

In https://reviews.llvm.org/D35411#813417, @efriedma wrote:

> Hmm...
>
> I took a quick look at the pass pipeline (PassManagerBuilder::populateModulePassManager), and it turns out LateSimplifyCFG is false for the last simplifycfg run.  That might be the source of your problem?


Thanks, Eli. In case you missed my previous comment, the problem here is that during LSR, loopsimplify creates dedicated exit blocks which now need to be cleaned up in CGP.


https://reviews.llvm.org/D35411





More information about the llvm-commits mailing list