[PATCH] D45655: [InstCombine][RFC] Canonicalize constant mask in masked merge mattern

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 15 03:49:33 PDT 2018


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

`nullptr`-init `Mc` too.
Does not appear to matter, but i have already hit the bug when
i forgot to do that to `M`, so better safe than sorry.


Repository:
  rL LLVM

https://reviews.llvm.org/D45655

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45655.142553.patch
Type: text/x-patch
Size: 16489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180415/b31184fd/attachment.bin>


More information about the llvm-commits mailing list