[PATCH] D59995: [LV] Exclude loop-invariant inputs from scalar cost computation.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 29 08:05:04 PDT 2019
fhahn created this revision.
fhahn added reviewers: hsaito, rengolin, dcaballe.
Herald added subscribers: jdoerfert, rkruppe, hiraditya, javed.absar.
Herald added a project: LLVM.
Loop invariant operands do not need to be scalarized, as we are using
the values outside the loop. We should ignore them when computing the
scalarization overhead.
Fixes PR41294
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D59995
Files:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/AArch64/instructions-with-struct-ops.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59995.192826.patch
Type: text/x-patch
Size: 8257 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190329/ea04c1b8/attachment.bin>
More information about the llvm-commits
mailing list