[PATCH] D62613: [DAGCombiner] Replace gathers with a zero mask with the passthru value

Benjamin Kramer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 29 11:22:39 PDT 2019


bkramer created this revision.
bkramer added a reviewer: craig.topper.
Herald added subscribers: hiraditya, javed.absar, jlebar.
Herald added a project: LLVM.

These can be created by the legalizer when splitting a larger gather.
Also make isNullOrNullSplat a bit smarter by ignoring truncation in
BUILD_VECTORs.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D62613

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/test/CodeGen/AArch64/vecreduce-bool.ll
  llvm/test/CodeGen/X86/avx2-masked-gather.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62613.201999.patch
Type: text/x-patch
Size: 4581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190529/fc560017/attachment.bin>


More information about the llvm-commits mailing list