[PATCH] D54021: [LoopSimplifyCFG] Teach LoopSimplifyCFG to constant-fold branches and switches

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 5 16:48:00 PST 2018


mkazantsev added a comment.

As for the test: I have commited all related tests I am planning to support in this pass in the file `test/Transforms/LoopSimplifyCFG/constant-fold-branch.ll`. It has all situations with dead blocks, live blocks, dead loops etc, please take a look and tell me if some important case is missing. My plan is to support folding in all these cases incrementally.

As for comments in code, I'll address them shortly.


https://reviews.llvm.org/D54021





More information about the llvm-commits mailing list