[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 11:38:56 PDT 2017


bmakam marked 4 inline comments as done.
bmakam added a comment.

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

> Why do we need the empty block folding in both LateSimplifyCFG and CGP?


Empty folding in CGP occurs very late after LSR and is also not aggressive because it is not run iteratively. LateSimplifyCFG cannot catch empty case blocks after switch is lowered, so we need the empty block folding in both places.


https://reviews.llvm.org/D35411





More information about the llvm-commits mailing list