[PATCH] D126200: Change LoopVectorizationCostModel::useOrderedReductions() to be a const function.
Mel Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 23 05:55:51 PDT 2022
Mel-Chen created this revision.
Mel-Chen added a reviewer: ABataev.
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.
https://reviews.llvm.org/D126200
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
@@ -1310,7 +1310,7 @@
/// RdxDesc. This is true if the -enable-strict-reductions flag is passed,
/// the IsOrdered flag of RdxDesc is set and we do not allow reordering
/// of FP operations.
- bool useOrderedReductions(const RecurrenceDescriptor &RdxDesc) {
+ bool useOrderedReductions(const RecurrenceDescriptor &RdxDesc) const {
return !Hints->allowReordering() && RdxDesc.isOrdered();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126200.431349.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220523/94a040ec/attachment.bin>
More information about the llvm-commits
mailing list