[PATCH] D39421: [InstCombine] Extracting common and-mask for shift operands of Or instruction

Omer Paparo Bivas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 12 23:50:08 PST 2017


opaparo updated this revision to Diff 122612.
opaparo edited the summary of this revision.
opaparo added a comment.

Adding a pattern match for a shift of and ((V&C1)<<C2).
Although and of shift is the canonical form, this new form is also required in some cases. The new test multiuse3 demonstrate such a case.


https://reviews.llvm.org/D39421

Files:
  lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  test/Transforms/InstCombine/or-or-shift.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39421.122612.patch
Type: text/x-patch
Size: 8589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171113/748b4a54/attachment.bin>


More information about the llvm-commits mailing list