aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@outlook.com>2023-11-16 16:00:41 -0800
committerAlexey Bataev <a.bataev@outlook.com>2023-11-16 16:11:43 -0800
commit484a27e412297b56027bb9fbb2f90462c668d20e (patch)
tree7406491f87f3a43206ac54b20bffe71b451fe187
parent49795d27761b9f398302354acd30980a319b1502 (diff)
downloadllvm-484a27e412297b56027bb9fbb2f90462c668d20e.zip
llvm-484a27e412297b56027bb9fbb2f90462c668d20e.tar.gz
llvm-484a27e412297b56027bb9fbb2f90462c668d20e.tar.bz2
[SLP][NFC]Make needToDelay constant, NFC.
-rw-r--r--llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 5b9c206..3af683d 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -10261,7 +10261,7 @@ public:
/// Checks if the specified entry \p E needs to be delayed because of its
/// dependency nodes.
Value *needToDelay(const TreeEntry *E,
- ArrayRef<SmallVector<const TreeEntry *>> Deps) {
+ ArrayRef<SmallVector<const TreeEntry *>> Deps) const {
// No need to delay emission if all deps are ready.
if (all_of(Deps, [](ArrayRef<const TreeEntry *> TEs) {
return all_of(