[all-commits] [llvm/llvm-project] 9bf702: [mlir][linalg] fix indexOp folder to work in gener...
Stanley Winata via All-commits
all-commits at lists.llvm.org
Fri Apr 25 18:52:23 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9bf702337d86727b48adcc00a60159b1650591dc
https://github.com/llvm/llvm-project/commit/9bf702337d86727b48adcc00a60159b1650591dc
Author: Stanley Winata <68087699+raikonenfnu at users.noreply.github.com>
Date: 2025-04-25 (Fri, 25 Apr 2025)
Changed paths:
M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
Log Message:
-----------
[mlir][linalg] fix indexOp folder to work in genericOp build with createOrFold (#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 at amd.com>
Co-authored-by: Jakub Kuderski <kubakuderski at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list