[PATCH] D138883: [PowerPC] find and reuse ConstantSplatVector to combine constant store into extract and store

Ting Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 5 18:31:47 PDT 2023


tingwang updated this revision to Diff 511247.
tingwang added a comment.

Since `canCombineStoreAndExtract()` target hook looks not good on PPC, reconsider use this approach to do the combine.

Change in this version:
(1) Address comments from previous review.
(2) Add check to make sure do not combine on truncated stores or those stores that return value.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138883/new/

https://reviews.llvm.org/D138883

Files:
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.h
  llvm/lib/Target/PowerPC/PPCInstrVSX.td
  llvm/test/CodeGen/PowerPC/const-splat-array-init.ll
  llvm/test/CodeGen/PowerPC/memset-tail.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138883.511247.patch
Type: text/x-patch
Size: 48958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230406/3eda6514/attachment.bin>


More information about the llvm-commits mailing list