llvm / llvm/offload-test-suite

[Clang + Vulkan] Invalid SPIRV code since loop intrinsic is preceded by convergent op in same block

Open
#1,435 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
18
Forks
39
Avg merge
2d 18h
Merged PRs (30d)
40

Description

As seen here:
https://github.com/llvm/offload-test-suite/actions/runs/31515381809/job/93861060523?pr=1434#step:13:340

The spirv-val says that `Loop intrinsic cannot be preceded by a convergent operation in the same basic block.`
We need to prevent this pattern from emerging.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked GitHub Actions run and inspect the spirv-val failure showing a loop intrinsic preceded by a convergent operation in the same basic block. Trace where this SPIR-V pattern is generated and reproduce the validator error; done means the pattern no longer emerges and spirv-val accepts the generated code.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.