[Mesa-dev] [PATCH v2 1/3] nir: Add a pass to lower vector phi nodes to scalar phi nodes
Connor Abbott
cwabbott0 at gmail.com
Mon Jan 26 11:31:52 PST 2015
On Mon, Jan 26, 2015 at 2:21 PM, Eric Anholt <eric at anholt.net> wrote:
> I just notied: When do I need to all nir_metadata_preserve()? I didn't
> in my pass.
It dirties all the metadata (topologically-sorted block indices,
dominance info, liveness info, etc.) except the stuff you tell it to
preserve via the flags. You're supposed to call it after any pass
where you mutate the IR. We should probably fix that... when you do
stuff that mutates the instructions but doesn't mess with the basic
blocks, you can just pass in nir_metadata_block_index |
nir_metadata_dominance like Jason did here since right now those are
the only things that depend only on the block structure.
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
More information about the mesa-dev
mailing list