[PATCH] D22747: [InstCombine] try to fold (select C, (sext A), B) into logical ops

Nicolai Hähnle via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 4 01:53:38 PDT 2016


nhaehnle updated this revision to Diff 66772.
nhaehnle added a comment.

That type of test was actually already there, but I added a copy with zext
instead of sext for good measure.

I added a TODO about handling larger types as well.


https://reviews.llvm.org/D22747

Files:
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  lib/Transforms/InstCombine/InstructionCombining.cpp
  test/Transforms/InstCombine/select-bitext.ll
  test/Transforms/InstCombine/vector-casts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22747.66772.patch
Type: text/x-patch
Size: 9974 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160804/74f0791c/attachment.bin>


More information about the llvm-commits mailing list