Skip to content

nir/loop_analyze: Fix inverted condition handling in iterations calculation

Sviatoslav Peleshko requested to merge GL/mesa:fix_loop_unroll into main

What does this MR do and why?

nir/loop_analyze: Fix inverted condition handling in iterations calculation

In the tagged commit, we stopped actually inverting the condition, and instead relied on the "invert_cond" flag. But we missed a few places where this flag should've been handled too.

Also, add a few more tests to make sure this won't regress in the future.

Fixes: 99a7a664 ("nir/loop_analyze: Change invert_cond instead of changing the condition") Closes: #10012 (closed) Signed-off-by: Sviatoslav Peleshko sviatoslav.peleshko@globallogic.com

Merge request reports