Skip to content
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

failed to legalize operation 'arith.sitofp' #19375

Open
jinchen62 opened this issue Dec 4, 2024 · 0 comments
Open

failed to legalize operation 'arith.sitofp' #19375

jinchen62 opened this issue Dec 4, 2024 · 0 comments
Labels
bug 🐞 Something isn't working

Comments

@jinchen62
Copy link
Contributor

What happened?

Following up issue of llvm/torch-mlir#3903.
Error log: https://gist.github.com/jinchen62/8059b38cc52770464b848da380815f2b
Reproducer on linalg backend: https://gist.github.com/jinchen62/f5973d95153582e73ca228332b973448

Compilation failed in iree-vm-conversion pass. The arith.sitofp comes from converting a dynamic input shape to float for calculating the resized shape by multiplying scales. Static shape would pass compilation, so I wonder if something in frontend should be changed or we could support it in iree compilation.

Steps to reproduce your issue

iree-compile --iree-hal-target-backends=llvm-cpu --iree-llvmcpu-target-cpu=host repro_linalg.mlir -o test.vmfb

What component(s) does this issue relate to?

No response

Version information

Local build on TOM

Additional context

No response

@jinchen62 jinchen62 added the bug 🐞 Something isn't working label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant