[Mlir-commits] [mlir] [mlir][cf] Fix APInt comparison crash in `foldSwitch` (PR #206407)
Longsheng Mou
llvmlistbot at llvm.org
Mon Jun 29 00:03:39 PDT 2026
CoTinker wrote:
> > Fix crash when switch value and case values have different APInt bit width.
>
> That is odd. Why would switch value and case values have different bitwidth? This sounds like a parser bug to me.
>
Because the attribute and result type of llvm.mlir.constant are different, maybe we should not fold this case?
https://github.com/llvm/llvm-project/pull/206407
More information about the Mlir-commits
mailing list