[Mlir-commits] [mlir] [mlir] Add `areLoopIterArgTypesCompatible` to `LoopLikeOpInterface` (PR #184116)

Hocky Yudhiono llvmlistbot at llvm.org
Mon Mar 2 06:09:28 PST 2026


================
@@ -77,37 +77,35 @@ LogicalResult detail::verifyLoopLikeOpInterface(Operation *op) {
            << " != " << loopLikeOp.getRegionIterArgs().size();
 
   // Verify types of inits/iter_args/yielded values/loop results.
-  int64_t i = 0;
   auto yieldedValues = loopLikeOp.getYieldedValues();
----------------
hockyy wrote:

```
  auto yieldedValues = loopLikeOp.getYieldedValues();
```
maybe move this one a bit up

<img width="844" height="261" alt="Image" src="https://github.com/user-attachments/assets/84c288d7-2f32-4182-9a59-583fe1b2a76e" />

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


More information about the Mlir-commits mailing list