[llvm] [LAA/SLP] Don't truncate APInt in getPointersDiff (PR #139941)
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Wed May 14 15:12:17 PDT 2025
================
@@ -5368,7 +5369,7 @@ BoUpSLP::findReusedOrderedScalars(const BoUpSLP::TreeEntry &TE,
// patterns.
SmallVector<Value *> GatheredScalars(TE.Scalars.begin(), TE.Scalars.end());
Type *ScalarTy = GatheredScalars.front()->getType();
- int NumScalars = GatheredScalars.size();
+ uint64_t NumScalars = GatheredScalars.size();
----------------
rnk wrote:
You could probably knock this out with a regex, `s/uint64_t Num(.*)\.size();/size_t Num\1.size();/`
https://github.com/llvm/llvm-project/pull/139941
More information about the llvm-commits
mailing list