[Mlir-commits] [mlir] [mlir][scf] Interpret trip counts as unsigned integers (PR #178060)

Matthias Springer llvmlistbot at llvm.org
Wed Jan 28 00:09:53 PST 2026


================
@@ -1572,7 +1572,7 @@ mlir::getConstLoopTripCounts(mlir::LoopLikeOpInterface loopOp) {
         lb, ub, step, /*isSigned=*/true, scf::computeUbMinusLb);
     if (!numIter)
       return {};
-    tripCounts.push_back(numIter->getSExtValue());
+    tripCounts.push_back(numIter->getZExtValue());
----------------
matthias-springer wrote:

Add TODO that the result should be a `SmallVector<uint64_t>`.

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


More information about the Mlir-commits mailing list