[PATCH] D45664: [InstCombine] Canonicalize variable mask in masked merge

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 15 06:05:11 PDT 2018


lebedev.ri updated this revision to Diff 142557.
lebedev.ri added a comment.

Slightly cleanup the matcher by using `m_CombineAnd()`,
which allows to use `m_c_And()` when looking for `A` part.

I'm not sure whether it actually matter because i was not able
to come up with a testcase, but it looks a bit cleaner anyway..


Repository:
  rL LLVM

https://reviews.llvm.org/D45664

Files:
  lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  test/Transforms/InstCombine/invert-variable-mask-in-masked-merge-scalar.ll
  test/Transforms/InstCombine/invert-variable-mask-in-masked-merge-vector.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45664.142557.patch
Type: text/x-patch
Size: 11740 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180415/2183d45b/attachment-0001.bin>


More information about the llvm-commits mailing list