Commit 9bf7023
[mlir][linalg] fix indexOp folder to work in genericOp build with createOrFold (llvm#137427)
Currently in torch-mlir, indexOp folder is segfaulting when we call
createOrFold in a genericOp builder. (*this)->getParentOp ended up with
null which is causing the issue.
This is seen in poolSizeCalculator.getPoolSize
being called from createAvgPoolValueCountIncludePadFalseCase. link:
https://github.com/llvm/torch-mlir/blob/80a3dfddd341c72ab9bd6c6688b872bf3a5e4ddb/lib/Conversion/TorchToLinalg/Pooling.cpp#L918-L921
---------
Signed-off-by: Stanley Winata <stanley.winata@amd.com>
Co-authored-by: Jakub Kuderski <kubakuderski@gmail.com>1 parent a8b2c96 commit 9bf7023
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2284 | 2284 | | |
2285 | 2285 | | |
2286 | 2286 | | |
2287 | | - | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
2288 | 2293 | | |
2289 | 2294 | | |
2290 | 2295 | | |
| |||
0 commit comments