imageworks/OpenShadingLanguage — pull request #222 by lgritz (2013-01-09 01:28:26+00:00)
Title: Minor improvement to recent exit() fix 

Minor improvement to recent exit() fix -- if the shader has no exit() call,
do not generate the extra branch & basic block.

This turns out to be important -- if we put the branch in there
unconditionally, and everything else is optimized away, it no longer looks
like the post-optimized IR is "empty", so the shader isn't flagged as
empty. When displacement shaders are empty, our renderer handles the
dicing differently. Hilarity ensues.