[PATCH] D129863: [PowerPC] Improve LowerVECTOR_SHUFFLE load-and-splat multi-use

Ting Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 15 08:30:58 PDT 2022


tingwang created this revision.
tingwang added reviewers: nemanjai, shchenz, lkail, qiucf, Esme, PowerPC.
tingwang added a project: LLVM.
Herald added subscribers: kbarton, hiraditya.
Herald added a project: All.
tingwang requested review of this revision.
Herald added a subscriber: llvm-commits.

Currently load-and-splat is applied when input-load has one-use. I think in multi-use scenario, if all use of the load can be shown to touch only the splat region, then we can still use load-and-splat instead of the original load.

This patch tries to explore this opportunity and reduce/simplify instruction.

Baseline test case will be added in https://reviews.llvm.org/D129861.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129863

Files:
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/test/CodeGen/PowerPC/load-and-splat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129863.444991.patch
Type: text/x-patch
Size: 9619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220715/3945f9d1/attachment.bin>


More information about the llvm-commits mailing list