nir/search: Log Boolean constants instead of asserting

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
Ian Romanick
2019-06-24 14:49:17 -07:00
parent 8d6b35fffd
commit cae1af4339

View File

@@ -561,6 +561,9 @@ MAYBE_UNUSED static void dump_value(const nir_search_value *val)
case nir_type_uint:
printf("0x%"PRIx64, sconst->data.u);
break;
case nir_type_bool:
printf("%s", sconst->data.u != 0 ? "True" : "False");
break;
default:
unreachable("bad const type");
}