mesa/src/compiler/nir/tests
Sviatoslav Peleshko a6459e0f7b nir/loop_analyze: Don't test non-positive iterations count
Testing negative iterations count makes no sense, and can cause issues
when the unsigned type is used.
Testing 0 iterations is already covered with
will_break_on_first_iteration, so it can be skipped too.

Fixes: 6772a17a ("nir: Add a loop analysis pass")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9913
Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26173>
2023-12-19 12:53:52 +00:00
..
algebraic_parser_test.py nir/algebraic: Move relocations for expression conds to a table. 2021-12-07 07:09:00 +00:00
algebraic_tests.cpp nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
builder_tests.cpp nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
comparison_pre_tests.cpp nir: Drop nir_alu_dest 2023-08-14 21:22:53 +00:00
control_flow_tests.cpp nir/tests: Refactor boilerplate into a common header 2023-07-24 11:44:46 +00:00
core_tests.cpp nir: nir_foreach_ssa_def() -> nir_foreach_def() 2023-08-13 17:12:52 +00:00
dce_tests.cpp nir: Take a nir_def * in nir_phi_instr_add_src() 2023-08-18 01:00:14 +00:00
load_store_vectorizer_tests.cpp nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
loop_analyze_tests.cpp nir/loop_analyze: Don't test non-positive iterations count 2023-12-19 12:53:52 +00:00
loop_unroll_tests.cpp nir: Take a nir_def * in nir_phi_instr_add_src() 2023-08-18 01:00:14 +00:00
lower_alu_width_tests.cpp nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
mod_analysis_tests.cpp nir s/nir_get_ssa_scalar/nir_get_scalar/ 2023-08-15 17:44:27 +00:00
negative_equal_tests.cpp nir: Drop "SSA" from NIR language 2023-08-12 16:44:41 -04:00
nir_test.h nir/tests: Refactor boilerplate into a common header 2023-07-24 11:44:46 +00:00
opt_if_tests.cpp nir: Take a nir_def * in nir_phi_instr_add_src() 2023-08-18 01:00:14 +00:00
opt_shrink_vectors_tests.cpp nir: Take a nir_def * in nir_phi_instr_add_src() 2023-08-18 01:00:14 +00:00
range_analysis_tests.cpp nir: Take a nir_def * in nir_phi_instr_add_src() 2023-08-18 01:00:14 +00:00
serialize_tests.cpp nir: Drop "SSA" from NIR language 2023-08-12 16:44:41 -04:00
vars_tests.cpp util: Use an opaque type for linear context 2023-09-25 17:26:17 +00:00