Improve dead-code elimination check in SPIR-V.

The dead-code elimination pass only occurs when three separate flags are
all enabled: optimize, control-flow analysis, dead-code elimination.
Previously the code checked just the dead-code elimination flag, not the
other two.

Change-Id: I1e7e356432c4398f6b072d472fe4d1ec5dac107e
Auto-Submit: John Stiles <>
Commit-Queue: Brian Osman <>
Reviewed-by: Brian Osman <>
1 file changed