Check for constant-valued while/do loop conditions.
authorBrian <brian@nostromo.localnet.net>
Fri, 9 Feb 2007 00:40:29 +0000 (17:40 -0700)
committerBrian <brian@nostromo.localnet.net>
Fri, 9 Feb 2007 00:40:29 +0000 (17:40 -0700)
commitbd9615bbc59b0ce626bb32e2a005fccec20e7331
tree1ecdc1fdb7e4789b1c4da46a8709258470de5050
parentc0a9f554be0b82f2e6ce2d9318854ecd24a1a890
Check for constant-valued while/do loop conditions.

Allows us to:
1. avoid generating constant-valued BRK test for while(1)..
2. discard entire loop for while(0).
3. detection infinite loops at compile-time.
src/mesa/shader/slang/slang_codegen.c