[PATCH] D31610: [InstCombine] Support folding and/or/xor with a constant vector RHS into selects and phis

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 12:41:52 PDT 2017


craig.topper updated this revision to Diff 94103.
craig.topper retitled this revision from "[InstCombine] Support folding add/and/or/xor with a constant vector RHS into selects" to "[InstCombine] Support folding and/or/xor with a constant vector RHS into selects and phis".
craig.topper edited the summary of this revision.
craig.topper added a comment.

Reduced to just the logic operations. Updated tests to include phis


https://reviews.llvm.org/D31610

Files:
  lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  test/Transforms/InstCombine/and.ll
  test/Transforms/InstCombine/or.ll
  test/Transforms/InstCombine/xor.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31610.94103.patch
Type: text/x-patch
Size: 7558 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170404/3ee36375/attachment.bin>


More information about the llvm-commits mailing list