The pass lowers 1-bit booleans produced by NIR to the native bitsize of the operations that produce them.
v2: change on lower_load_const_instr after upstream changes. Added TODO2 to explain it, as it was not properly tested yet (see already existing TODO) (Neil)
467c9a0faa0 nir: add a bool bitsize lowering pass
src/compiler/Makefile.sources | 1 +
src/compiler/nir/meson.build | 1 +
src/compiler/nir/nir.h | 1 +
src/compiler/nir/nir_lower_bool_to_bitsize.c | 431 +++++++++++++++++++++++++++
4 files changed, 434 insertions(+)