-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mlir] --canonicalize causes segmentation fault in eraseUnreachableBlocks. #74461
Comments
I'm not clearly sure what the root cause but it crashed in the middle of erasing the llvm-project/mlir/lib/IR/PatternMatch.cpp Line 349 in 847d845
|
@llvm/issue-subscribers-mlir-spirv Author: anonymousMCS (anonymousMCS)
git version: 383e350
system: Ubuntu 20.04.6 LTS (Focal Fossa) reproduced with: a.mlir:
trace:
|
I couldn't reproduce this with an unregistered dialect. The following example has nested operations and works as expected: func.func @func() {
cf.br ^bb4
^bb2:
"dialect.op1" () ({
cf.br ^bb3
^bb3:
llvm.return
}) : () -> ()
cf.br ^bb4
^bb4:
"dialect.op2" () ({
"dialect.op3" () ({ }) : () -> ()
}) : () -> ()
llvm.return
} % ./bin/mlir-opt -allow-unregistered-dialect --canonicalize ./playground/custom.mlir
module {
func.func @func() {
"dialect.op2"() ({
"dialect.op3"() ({
}) : () -> ()
}) : () -> ()
llvm.return
}
} And if I replace |
This doesn't reproduce on ToM. Closing. |
git version: 383e350
system: Ubuntu 20.04.6 LTS (Focal Fossa)
reproduced with:
mlir-opt --canonicalize a.mlir
a.mlir:
trace:
The text was updated successfully, but these errors were encountered: