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

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Wed May 14 11:15:44 PDT 2025


================
@@ -1583,8 +1583,8 @@ static void addMask(SmallVectorImpl<int> &Mask, ArrayRef<int> SubMask,
 /// values 3 and 7 respectively:
 /// before:  6 9 5 4 9 2 1 0
 /// after:   6 3 5 4 7 2 1 0
-static void fixupOrderingIndices(MutableArrayRef<unsigned> Order) {
-  const unsigned Sz = Order.size();
+static void fixupOrderingIndices(MutableArrayRef<uint64_t> Order) {
----------------
alexey-bataev wrote:

The orders better to keep just unsigned, it is not a bug, just indices in the array

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


More information about the llvm-commits mailing list