[PATCH] D86371: [CodeGenPrepare][X86] Teach optimizeGatherScatterInst to turn a splat pointer into GEP with scalar base and 0 index

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 13:49:53 PDT 2020


craig.topper created this revision.
craig.topper added reviewers: efriedma, RKSimon, spatel.
Herald added subscribers: arphaman, hiraditya.
Herald added a project: LLVM.
craig.topper requested review of this revision.

This helps SelectionDAGBuilder recognize the splat can be used as a uniform base.


https://reviews.llvm.org/D86371

Files:
  llvm/include/llvm/Analysis/VectorUtils.h
  llvm/lib/Analysis/VectorUtils.cpp
  llvm/lib/CodeGen/CodeGenPrepare.cpp
  llvm/test/CodeGen/X86/masked_gather_scatter.ll
  llvm/test/Transforms/CodeGenPrepare/X86/gather-scatter-opt.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86371.287100.patch
Type: text/x-patch
Size: 11712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200821/ae92a2f8/attachment.bin>


More information about the llvm-commits mailing list