nir/divergence_analysis: Update LCSSA comment

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35271>
This commit is contained in:
Mel Henning
2025-05-31 12:26:16 -04:00
committed by Marge Bot
parent 80fb555718
commit d15b5fadbb
+3 -1
View File
@@ -28,7 +28,9 @@
* That is, the variable has the same value for all invocations
* of the group.
*
* This divergence analysis pass expects the shader to be in LCSSA-form.
* If the shader is not in LCSSA-form, passes need to use nir_src_is_divergent()
* instead of reading the value from src->ssa->divergent as without LCSSA a src
* can have a different divergence than the corresponding SSA-def.
*
* This algorithm implements "The Simple Divergence Analysis" from
* Diogo Sampaio, Rafael De Souza, Sylvain Collange, Fernando Magno Quintão Pereira.