nir: Add unit tests for nir_opt_comparison_pre
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 17 Jun 2019 23:27:37 +0000 (16:27 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 8 Jul 2019 18:30:10 +0000 (11:30 -0700)
commitb08d7040518cdf76792952ceef72cadaa54d0179
tree25981a79e6ae7448d6f5f103f08e136da7354dcf
parentf734e2a042e3cee94fb8200e8baf34a81c5de46e
nir: Add unit tests for nir_opt_comparison_pre

Each tests has a comment with the expected before and after NIR.  The
tests don't actually check this.  The tests only check whether or not
the optimization pass reported progress.  I couldn't think of a robust,
future-proof way to check the before and after code.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_comparison_pre.c
src/compiler/nir/tests/comparison_pre_tests.cpp [new file with mode: 0644]