mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-17 13:58:05 +02:00
There are a lot of optimizations in opt_algebraic that match ('ine', a,
0), but there are almost none that match i2b. Instead of adding a huge
pile of additional patterns (including variation that include both ine
and i2b), just emit a != 0 instead of i2b(a).
I think that the changes to the unit tests weaken them slightly, but
perhaps that's okay?
No shader-db changes on any Intel platform. The GLSL paths use other
means to generate i2b operations, but the SPIR-V paths use nir_i2b.
Presumably since
|
||
|---|---|---|
| .. | ||
| algebraic_parser_test.py | ||
| algebraic_tests.cpp | ||
| builder_tests.cpp | ||
| comparison_pre_tests.cpp | ||
| control_flow_tests.cpp | ||
| core_tests.cpp | ||
| dce_tests.cpp | ||
| load_store_vectorizer_tests.cpp | ||
| loop_analyze_tests.cpp | ||
| lower_returns_tests.cpp | ||
| negative_equal_tests.cpp | ||
| opt_if_tests.cpp | ||
| serialize_tests.cpp | ||
| ssa_def_bits_used_tests.cpp | ||
| vars_tests.cpp | ||