Fix -Wsign-compare from D149893.
authorJustin Lebar <justin.lebar@gmail.com>
Fri, 26 May 2023 23:22:16 +0000 (16:22 -0700)
committerJustin Lebar <justin.lebar@gmail.com>
Fri, 26 May 2023 23:22:16 +0000 (16:22 -0700)
llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp

index 26cb643..52c6a9f 100644 (file)
@@ -1422,7 +1422,7 @@ std::vector<Chain> Vectorizer::gatherChains(ArrayRef<Instruction *> Instrs) {
   // chains.  This limits the O(n^2) behavior of this pass while also allowing
   // us to build arbitrarily long chains.
   for (Instruction *I : Instrs) {
-    constexpr size_t MaxChainsToTry = 64;
+    constexpr int MaxChainsToTry = 64;
 
     bool MatchFound = false;
     auto ChainIter = MRU.begin();