[Mlir-commits] [mlir] [mlir][scf]: Expose emitNormalizedLoopBounds/denormalizeInductionVariable util functions (NFC) (PR #94429)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jun 6 11:22:11 PDT 2024


================
@@ -638,9 +621,9 @@ LogicalResult mlir::coalesceLoops(RewriterBase &rewriter,
         emitNormalizedLoopBounds(rewriter, loop.getLoc(), lb, ub, step);
 
     rewriter.modifyOpInPlace(loop, [&]() {
-      loop.setLowerBound(newLoopParams.lowerBound);
-      loop.setUpperBound(newLoopParams.upperBound);
-      loop.setStep(newLoopParams.step);
+      loop.setLowerBound(cast<Value>(newLoopParams.lowerBound));
----------------
MaheshRavishankar wrote:

you would need to use `getAsConstantIndexValue(rewriter, loc, newLoopParams.lowerBound)` here and below.

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


More information about the Mlir-commits mailing list