[PATCH] Move debug message in vectorizer
Renato Golin
renato.golin at linaro.org
Mon Nov 11 05:54:10 PST 2013
Hi nadav,
No functional change, just better reporting.
http://llvm-reviews.chandlerc.com/D2137
Files:
lib/Transforms/Vectorize/LoopVectorize.cpp
Index: lib/Transforms/Vectorize/LoopVectorize.cpp
===================================================================
--- lib/Transforms/Vectorize/LoopVectorize.cpp
+++ lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -965,15 +965,12 @@
unsigned UF = CM.selectUnrollFactor(OptForSize, Hints.Unroll, VF.Width,
VF.Cost);
- if (VF.Width == 1) {
- DEBUG(dbgs() << "LV: Vectorization is possible but not beneficial.\n");
- }
-
DEBUG(dbgs() << "LV: Found a vectorizable loop ("<< VF.Width << ") in "<<
F->getParent()->getModuleIdentifier() << '\n');
DEBUG(dbgs() << "LV: Unroll Factor is " << UF << '\n');
if (VF.Width == 1) {
+ DEBUG(dbgs() << "LV: Vectorization is possible but not beneficial.\n");
if (UF == 1)
return false;
// We decided not to vectorize, but we may want to unroll.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2137.1.patch
Type: text/x-patch
Size: 893 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131111/e65d1837/attachment.bin>
More information about the llvm-commits
mailing list