diff options
author | Jason Ekstrand <[email protected]> | 2014-12-15 19:38:14 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:20:22 -0800 |
commit | 28a3e164e275114fa536023d6594bbbcbae18157 (patch) | |
tree | 144c1b32cc6dd93636b7bbaf58a0c49785442631 /common.py | |
parent | 193fea9eb6a7ad72360a3ac65b322bab081f9587 (diff) |
nir: Use nir_foreach_ssa_def for setting up ssa destinations
Before, we were using foreach_dest and switching on whether the destination
was an SSA value. This works, except not all destinations are SSA values
so we have to special-case ssa_undef instructions. Now that we have a
foreach_ssa_def function, we can iterate over all of the register
destinations in one pass and iterate over the SSA destinations in a second.
This way, if we add other ssa-only instructions, we won't have to worry
about adding them to the special case we have for ssa_undef.
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'common.py')
0 files changed, 0 insertions, 0 deletions