[Mlir-commits] [mlir] [mlir][linalg] fix indexOp folder to work in genericOp build with createOrFold (PR #137427)
Stanley Winata
llvmlistbot at llvm.org
Fri Apr 25 18:16:46 PDT 2025
raikonenfnu wrote:
> > > Thanks for fixing this! Can we add a test?
> >
> >
> > Was thinking about this but can't think of a good test for it, do you have some suggestions? :)
>
> Can we take the IR from troch-mlir that caused the original crash?
Fantastic question! I have a repro IR here https://gist.github.com/raikonenfnu/5f9df8748712fada5b167abd696a13fa. However, it is failing not from an IR level, but rather it fails during a lowering, because it calls into `createOrFold` here https://github.com/llvm/torch-mlir/blob/80a3dfddd341c72ab9bd6c6688b872bf3a5e4ddb/lib/Conversion/TorchToLinalg/Pooling.cpp#L918-L921
so not so sure if I can recreate that in IR 😅
https://github.com/llvm/llvm-project/pull/137427
More information about the Mlir-commits
mailing list