mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
freedreno/ir3/nir: fix build break after f752effa
Our lower if/else pass was missed when converting NIR to use linked lists rather than hashsets to track use/def sets. Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
da136dc07d
commit
1cbdafc47a
1 changed files with 3 additions and 4 deletions
|
|
@ -74,14 +74,13 @@ valid_dest(nir_block *block, nir_dest *dest)
|
|||
* (so this is run iteratively in a loop). Therefore if
|
||||
* we get this far, it should not have any if_uses:
|
||||
*/
|
||||
assert(dest->ssa.if_uses->entries == 0);
|
||||
assert(list_empty(&dest->ssa.if_uses));
|
||||
|
||||
/* The only uses of this definition must be phi's in the
|
||||
* successor or in the current block
|
||||
*/
|
||||
struct set_entry *entry;
|
||||
set_foreach(dest->ssa.uses, entry) {
|
||||
const nir_instr *dest_instr = entry->key;
|
||||
nir_foreach_use(&dest->ssa, use) {
|
||||
nir_instr *dest_instr = use->parent_instr;
|
||||
if (dest_instr->block == block)
|
||||
continue;
|
||||
if ((dest_instr->type == nir_instr_type_phi) &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue