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

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 7 22:02:27 PST 2018


mkazantsev updated this revision to Diff 173121.
mkazantsev marked 2 inline comments as done.
mkazantsev added a comment.

Added lambda for printing;
Reworked to make it clear that we are doing it for non-dead loops;
Simplified logic in `constantFoldTerminators`


https://reviews.llvm.org/D54021

Files:
  lib/Transforms/Scalar/LoopSimplifyCFG.cpp
  test/Transforms/LoopSimplifyCFG/constant-fold-branch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54021.173121.patch
Type: text/x-patch
Size: 21205 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181108/a39b4cb4/attachment.bin>


More information about the llvm-commits mailing list