Split loop header from condition testing for for/while loops.
This commit is contained in:
parent
7349eab099
commit
213bbbe4a7
14 changed files with 1905 additions and 1828 deletions
|
|
@ -2,8 +2,5 @@
|
|||
layout(location=0) out highp int r;
|
||||
void main() {
|
||||
int i;
|
||||
// This infinite loop results in bad SPIR-V generated, since the merge block
|
||||
// is dropped as unreachable. It is still useful for testing the rest of the
|
||||
// code generation.
|
||||
for (i=0; ; i++) { r = i; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue