diff options
author | Renato Golin <renato.golin@linaro.org> | 2013-11-11 16:27:35 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2013-11-11 16:27:35 +0000 |
commit | 4921d5b0a9b70d201f18804452aeb62f1c41fcc3 (patch) | |
tree | 6558504b31b658e5f232564e685901b94788f9e4 /lib | |
parent | 1b2034d9695f5afdf4ab963ab1c9bbd53061235e (diff) | |
download | external_llvm-4921d5b0a9b70d201f18804452aeb62f1c41fcc3.zip external_llvm-4921d5b0a9b70d201f18804452aeb62f1c41fcc3.tar.gz external_llvm-4921d5b0a9b70d201f18804452aeb62f1c41fcc3.tar.bz2 |
Move debug message in vectorizer
No functional change, just better reporting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Vectorize/LoopVectorize.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp index 6db7f68..bc649b3 100644 --- a/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -965,15 +965,12 @@ struct LoopVectorize : public LoopPass { 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. |