[PATCH] D112549: Adding patch and unittest to generalize ignorable induction casts in the LoopVectorizationLegality analysis.
Avery Laird via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 26 08:19:55 PDT 2021
avery-laird created this revision.
avery-laird added a reviewer: mkuper.
Herald added subscribers: hiraditya, mgorny.
avery-laird requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch assumes that casts of the induction phi, from the same type, can be treated as the induction variable for the purposes of the legality analysis. This helps to make the cost model more accurate in certain cases, particularily with getMemInstScalarizationCost.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D112549
Files:
llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
llvm/unittests/Transforms/Vectorize/CMakeLists.txt
llvm/unittests/Transforms/Vectorize/LoopVectorizationLegalityTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112549.382339.patch
Type: text/x-patch
Size: 7618 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211026/51c57b67/attachment.bin>
More information about the llvm-commits
mailing list