diff options
author | Kenneth Graunke <[email protected]> | 2011-09-22 15:04:56 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-10-18 12:24:48 -0700 |
commit | 3c22e3516527ccb83f2667abfa0e6518c5938df8 (patch) | |
tree | dc3207e331e99831067e88375a75daedf320bf96 /src/glsl/ir_variable_refcount.h | |
parent | f8377b411dfe3c879eaab11bb86f509178796bd1 (diff) |
glsl: Stop tree grafting if a variable is overwritten as an 'out' param.
While reviewing some compiler cleanups I'd sent out, Paul noticed that
tree grafting wasn't taking "out" parameters into account.
Further investigation revealed that it isn't strictly necessary: ir_call
ends basic blocks, and tree grafting currently only operates on basic
blocks. So calls already kill grafts.
However, just to be safe, this patch makes "out" parameters explicitly
kill grafts. Paul and I both prefer this. It's a bit clearer.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/glsl/ir_variable_refcount.h')
0 files changed, 0 insertions, 0 deletions