From 8d57b00f9673a309ba3bbd4bfb6d2053a178a519 Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Fri, 26 May 2023 16:22:16 -0700 Subject: [PATCH] Fix -Wsign-compare from D149893. --- llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp b/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp index 26cb6439c9e26..52c6a9ff16bdf 100644 --- a/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp @@ -1422,7 +1422,7 @@ std::vector Vectorizer::gatherChains(ArrayRef 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();