[PATCH] D103970: Fix range-loop-analysis warning
Keith Smiley via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 10 08:49:35 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG026170d17d1e: Fix range-loop-analysis warning (authored by keith).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103970/new/
https://reviews.llvm.org/D103970
Files:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Index: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
===================================================================
--- llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -8021,7 +8021,7 @@
ElementCount::isKnownLE(VF, MaxFactors.ScalableVF); VF *= 2)
VFCandidates.insert(VF);
- for (const auto VF : VFCandidates) {
+ for (const auto &VF : VFCandidates) {
// Collect Uniform and Scalar instructions after vectorization with VF.
CM.collectUniformsAndScalars(VF);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103970.351188.patch
Type: text/x-patch
Size: 549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210610/68adab34/attachment.bin>
More information about the llvm-commits
mailing list