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
dneto0
changed the title
inliner generates invalid OpLabel if calle has single return in block that does not appear last
inliner generates invalid OpLabel if callee has single return in block that does not appear last
Aug 10, 2017
Avoid generating an invalid OpLabel.
Create the continue target for the single-trip loop only if
you actually created the header for the single-trip loop.
FixesKhronosGroup#755
Avoid generating an invalid OpLabel.
Create the continue target for the single-trip loop only if
you actually created the header for the single-trip loop.
FixesKhronosGroup#755
Example code:
It's generated from this vertex shader, but where I reorder, in the SPIR-V assembly, the last two basic blocks of the "foo" function:
When running spirv-opt with inline-entry-points-exhaustive:
Likely remedy is to guard the codegen of continue target block by earlyReturn. Still have to create the block with label Id returnLabelId.
The text was updated successfully, but these errors were encountered: