[PATCH] D143422: [LV][SVE] Don't consider vector types for loop invariants when calculating register usage
Sushant Gokhale via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 6 10:31:01 PST 2023
sushgokh created this revision.
sushgokh added reviewers: SjoerdMeijer, dmgreen, nadav, Nicola.
Herald added subscribers: psnobl, hiraditya, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: All.
sushgokh requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.
Previously, while calculating register usage due to invariants, all VFs were considered resulting in illegal vector type
e.g. for the mentioned test case, nxv4i128 cant be legalized.
This patch overcomes this issue. Fixes issue 60493
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D143422
Files:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/sve-invariant-legalization.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143422.495206.patch
Type: text/x-patch
Size: 3998 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230206/2555b410/attachment.bin>
More information about the llvm-commits
mailing list