> > Should we also consider the block-based cursor options here? Moving > > the first instruction of a block before that block > > (nir_cursor_before_block), etc. > > > > That should be fine as-is as nir_instr_insert should do the right thing. > The reason the cursor.instr == instr case is a problem is because you can't > insert an instruction relative to itself.
Got it. Reviewed-by: Caio Marcelo de Oliveira Filho <caio.olive...@intel.com> _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev