[llvm] 484a27e - [SLP][NFC]Make needToDelay constant, NFC.

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 16 16:12:00 PST 2023


Author: Alexey Bataev
Date: 2023-11-16T16:11:43-08:00
New Revision: 484a27e412297b56027bb9fbb2f90462c668d20e

URL: https://github.com/llvm/llvm-project/commit/484a27e412297b56027bb9fbb2f90462c668d20e
DIFF: https://github.com/llvm/llvm-project/commit/484a27e412297b56027bb9fbb2f90462c668d20e.diff

LOG: [SLP][NFC]Make needToDelay constant, NFC.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 5b9c20671d248b9..3af683df07fe300 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -10261,7 +10261,7 @@ class BoUpSLP::ShuffleInstructionBuilder final : public BaseShuffleAnalysis {
   /// 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(


        


More information about the llvm-commits mailing list