Other tests use the same environment variable to decide whether they
should print debugging information.
Will quiet Coverity's "'Constant' variable guards dead code".
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6126>
static void
copy_propagation(vec4_visitor *v)
{
- bool print = false;
+ const bool print = getenv("TEST_DEBUG");
if (print) {
fprintf(stderr, "instructions before:\n");
static void
dead_code_eliminate(vec4_visitor *v)
{
- bool print = false;
+ const bool print = getenv("TEST_DEBUG");
if (print) {
fprintf(stderr, "instructions before:\n");
static void
_register_coalesce(vec4_visitor *v, const char *func)
{
- bool print = false;
+ const bool print = getenv("TEST_DEBUG");
if (print) {
printf("%s: instructions before:\n", func);