[PATCH] D128523: [LV][NFC] Fix the condition for printing debug messages
Mel Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 24 06:24:39 PDT 2022
Mel-Chen created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
Mel-Chen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D128523
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
@@ -5417,7 +5417,7 @@
}
LLVM_DEBUG(if (ForceVectorization && !ChosenFactor.Width.isScalar() &&
- ChosenFactor.Cost >= ScalarCost.Cost) dbgs()
+ !isMoreProfitable(ChosenFactor, ScalarCost)) dbgs()
<< "LV: Vectorization seems to be not beneficial, "
<< "but was forced by a user.\n");
LLVM_DEBUG(dbgs() << "LV: Selecting VF: " << ChosenFactor.Width << ".\n");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128523.439726.patch
Type: text/x-patch
Size: 656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220624/4fe0f447/attachment.bin>
More information about the llvm-commits
mailing list