[Mlir-commits] [mlir] [mlir][cf] Fix APInt comparison crash in `foldSwitch` (PR #206407)

Matthias Springer llvmlistbot at llvm.org
Mon Jun 29 04:30:26 PDT 2026


matthias-springer wrote:

What's a 32-bit index type? The index type has a platform-dependent bitwidth. I'm not sure what the semantics of this operation is:
```mlir
%c0_i32 = llvm.mlir.constant(1 : index) : i32
```
Is it `index` or `i32`? It can't be both.

It may be worth asking on Discourse/Discord for further clarification.


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


More information about the Mlir-commits mailing list