nir/tests: Add tests for opt_if_simplification
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Tue, 21 Jul 2020 12:51:55 +0000 (15:51 +0300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jul 2020 14:20:21 +0000 (14:20 +0000)
commit348e8b5618c9049b65f339830cac2b221efa7102
tree0980d799bb264da60417ecddcaef965face2f936
parent6f94b3da111f65a46126fdb3652474dc4d9cbda5
nir/tests: Add tests for opt_if_simplification

Test cases:

opt_if_simplification - the most trivial test case.

opt_if_simplification_single_source_phi_after_if - tests that
opt_if_simplification correctly handles single-source phis after
the if, found in https://gitlab.freedesktop.org/mesa/mesa/-/issues/3282

Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5945>
src/compiler/nir/meson.build
src/compiler/nir/tests/opt_if_tests.cpp [new file with mode: 0644]