[PATCH] D32483: [EarlyCSE] Make branches unconditional if the condition is known

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 04:44:03 PDT 2017


mkazantsev created this revision.

If EarlyCSE has proved that branch condition is true/false, it can replace it with unconditional branch to the corresponding block.


https://reviews.llvm.org/D32483

Files:
  lib/Transforms/Scalar/EarlyCSE.cpp
  test/Transforms/EarlyCSE/guards.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32483.96530.patch
Type: text/x-patch
Size: 8067 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170425/df50f28c/attachment.bin>


More information about the llvm-commits mailing list