Closed afd closed 1 year ago
@vili-1 would you be able to look into adding this, and check that it doesn't lead to any good examples being rejected?
@afd I modelled this (and the test case is rejected now of course). I laso checked again most of the CFGs extracted from VK-GL-CTS and no surprises.
Great - once we're fully confident that we want this new rule, can you commit it to the model and close this issue? Thanks.
This spirv-val PR relates to this rule in the spec:
It appears that we do not have a corresponding rule for this.
I think we need a rule to require the following:
Another way of stating this:
If B is a loop header and B has successors C and D then at least one of the following must hold: