[PATCH] D29037: Constant fold switch inst when looking for trivial conditions to unswitch on.

Xin Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 14:56:07 PST 2017


trentxintong updated this revision to Diff 85458.
trentxintong added a comment.

After thinking about it. I decided to drop the constant-folding as they are not trivially cheap.
Especially at this point, they have probably been folded away, the ones remaining probably can
not be folded anyways.


https://reviews.llvm.org/D29037

Files:
  lib/Transforms/Scalar/LoopUnswitch.cpp
  test/Transforms/LoopUnswitch/trivial-unswitch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29037.85458.patch
Type: text/x-patch
Size: 3688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170123/81fc95e4/attachment.bin>


More information about the llvm-commits mailing list