[llvm] [LAA/SLP] Don't truncate APInt in getPointersDiff (PR #139941)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu May 15 02:04:38 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();
----------------
fhahn wrote:

Is this change related to /required for changing `getPointersDiff`? If not, would probably be best to do that separately?

https://github.com/llvm/llvm-project/pull/139941


More information about the llvm-commits mailing list