[PATCH] D46031: [DAGCombiner] Masked merge: if 'B' is constant, de-canonicalize the pattern (invert the mask).

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 27 04:13:51 PDT 2018


lebedev.ri updated this revision to Diff 144310.
lebedev.ri marked 3 inline comments as done.
lebedev.ri retitled this revision from "[DAGCombiner] DON'T unfold scalar masked merge if 'B' is constant" to "[DAGCombiner] Masked merge: if 'B' is constant, de-canonicalize the pattern (invert the mask).".
lebedev.ri edited the summary of this revision.
lebedev.ri added a comment.

Assuming we'll manage to get https://reviews.llvm.org/D46073, this should do it.


Repository:
  rL LLVM

https://reviews.llvm.org/D46031

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AArch64/unfold-masked-merge-scalar-variablemask.ll
  test/CodeGen/X86/unfold-masked-merge-scalar-variablemask.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46031.144310.patch
Type: text/x-patch
Size: 4755 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180427/e9b57e2c/attachment.bin>


More information about the llvm-commits mailing list