intel / intel/graph-compiler

LLVM Translation failed for operation: builtin.unrealized_conversion_cast

Open
#218 0 comments 0 reactions 1 assignee Claimed by @ZhennanQin View on GitHub
Dominant language
C++
Stars
54
Forks
16
PR merge metrics
No merged PRs in 30d

Description

The error happened on a single op test
```
module {
func.func @entry(%arg0: tensor<5x6xf32>, %arg1: tensor<6x7xf32>) -> tensor<5x7xf32> attributes {llvm.emit_c_interface} {
%0 = tensor.empty() : tensor<5x7xf32>
%1 = linalg.matmul {cast = #linalg.type_fn} ins(%arg0, %arg1 : tensor<5x6xf32>, tensor<6x7xf32>) outs(%0 : tensor<5x7xf32>) -> tensor<5x7xf32>
return %1 : tensor<5x7xf32>
}
}
```
Most likely `ConvertOpenMPToLLVMPass` introduces the issue here
Before:
![图片](https://github.com/user-attachments/assets/26ffec65-724d-4765-9dcf-e89f273b7ffb)
After: (check %43)
![图片](https://github.com/user-attachments/assets/2c5aec7d-0dd8-41b3-9b07-480572f5e0db)
Final: (before crash, check %7)
![图片](https://github.com/user-attachments/assets/deed64d9-aca7-4798-9a57-1c7aeaedf52c)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.