Unverified Commit e08f1fda authored by Nathan Gauër's avatar Nathan Gauër Committed by GitHub
Browse files

[clang][SPIR-V] Always add convergence intrinsics (#88918)



PR #80680 added bits in the codegen to lazily add convergence intrinsics
when required. This logic relied on the LoopStack. The issue is when
parsing the condition, the loopstack doesn't yet reflect the correct
values, as expected since we are not yet in the loop.

However, convergence tokens should sometimes already be available. The
solution which seemed the simplest is to greedily generate the tokens
when we generate SPIR-V.

Fixes #88144

---------

Signed-off-by: default avatarNathan Gauër <brioche@google.com>
parent a4accdfe
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment