[PATCH] D115724: [InstCombine] Fold for masked scatters to a uniform address
Caroline via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 14 05:49:24 PST 2021
CarolineConcatto created this revision.
Herald added a subscriber: hiraditya.
CarolineConcatto requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
When masked scatter intrinsic does a uniform store to a destination
address from a source vector, and in this case, the mask is all one value.
This patch replaces the masked scatter with an extracted element of the
last lane of the source vector and stores it in the destination vector.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D115724
Files:
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/vscale_masked_intrinsics.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115724.394221.patch
Type: text/x-patch
Size: 6677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211214/2ef677f0/attachment.bin>
More information about the llvm-commits
mailing list