Skip to content

SPIR-V translator is failed to translate "unsupported" vectors. #645

Open
@bader

Description

@bader

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.

long3 y;

kernel void foo(global int *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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agendaTooling Call Agenda

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions