[llvm] 8d57b00 - Fix -Wsign-compare from D149893.
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Fri May 26 16:22:47 PDT 2023
Author: Justin Lebar
Date: 2023-05-26T16:22:16-07:00
New Revision: 8d57b00f9673a309ba3bbd4bfb6d2053a178a519
URL: https://github.com/llvm/llvm-project/commit/8d57b00f9673a309ba3bbd4bfb6d2053a178a519
DIFF: https://github.com/llvm/llvm-project/commit/8d57b00f9673a309ba3bbd4bfb6d2053a178a519.diff
LOG: Fix -Wsign-compare from D149893.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp b/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
index 26cb6439c9e2..52c6a9ff16bd 100644
--- a/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
@@ -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();
More information about the llvm-commits
mailing list