[llvm] 71fe592 - [SLP][NFC]Adjust type in debug output loop.

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 17 12:43:33 PST 2021


Author: Alexey Bataev
Date: 2021-12-17T12:43:01-08:00
New Revision: 71fe59212ca41d897d651758ab07868cc2114fec

URL: https://github.com/llvm/llvm-project/commit/71fe59212ca41d897d651758ab07868cc2114fec
DIFF: https://github.com/llvm/llvm-project/commit/71fe59212ca41d897d651758ab07868cc2114fec.diff

LOG: [SLP][NFC]Adjust type in debug output loop.

The ReuseShuffleIndices indeces are integer, not unsigned, need to fix
the type in the debug print loop.

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 6346406b091a..cbcdcc3cf325 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -2119,7 +2119,7 @@ class BoUpSLP {
       if (ReuseShuffleIndices.empty())
         dbgs() << "Empty";
       else
-        for (unsigned ReuseIdx : ReuseShuffleIndices)
+        for (int ReuseIdx : ReuseShuffleIndices)
           dbgs() << ReuseIdx << ", ";
       dbgs() << "\n";
       dbgs() << "ReorderIndices: ";


        


More information about the llvm-commits mailing list