You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is an example of OpenCL program SPIR-V translator fails to translate because InstCombine pass changes vector type to another vector type with the same size, but different # of elements.
long3y;
kernelvoidfoo(globalint*x) {
x[0] =y.x;
}
https://godbolt.org/z/oMM9qv - LLVM IR contains 6 - element vectors. Changing data types in this example we can get a lot of vector types, which will be rejected by SPIR-V translator if SPV_INTEL_vector_compute extension is not supported.
The text was updated successfully, but these errors were encountered:
bader
added a commit
to bader/llvm
that referenced
this issue
Jul 20, 2020
This is temporary work-around for a problem reported here:
KhronosGroup/SPIRV-LLVM-Translator#645
InstCombine canonical form for this pattern
```
// Example (little endian):
// trunc (extractelement <4 x i64> %X, 0) to i32
// --->
// extractelement <8 x i32> (bitcast <4 x i64> %X to <8 x i32>), i32 0
```
can't be lowered by SPIR-V translator to "standard" format.
This is temporary work-around for a problem reported here:
KhronosGroup/SPIRV-LLVM-Translator#645
InstCombine canonical form for this pattern
```
// Example (little endian):
// trunc (extractelement <4 x i64> %X, 0) to i32
// --->
// extractelement <8 x i32> (bitcast <4 x i64> %X to <8 x i32>), i32 0
```
can't be lowered by SPIR-V translator to "standard" format.
Here is an example of OpenCL program SPIR-V translator fails to translate because
InstCombine
pass changes vector type to another vector type with the same size, but different # of elements.https://godbolt.org/z/oMM9qv - LLVM IR contains 6 - element vectors. Changing data types in this example we can get a lot of vector types, which will be rejected by SPIR-V translator if
SPV_INTEL_vector_compute
extension is not supported.The text was updated successfully, but these errors were encountered: