[PATCH] D126200: [NFC] Change LoopVectorizationCostModel::useOrderedReductions() to be a const function.
Mel Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 31 05:39:24 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb0fc765350fe: [NFC] Change LoopVectorizationCostModel::useOrderedReductions() to be a const… (authored by Mel-Chen).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126200/new/
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.433060.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220531/373395be/attachment.bin>
More information about the llvm-commits
mailing list