NIR: Get rid of non-SSA sources
This is something that @cwabbott0 and I have talked about as a way to reduce run times (no more is_ssa
checks) and also to reduce the memory footprint of NIR. Currently, nir_src is 5 pointers, an unsigned
and a bool
. We could get that down to 4 pointers if we got rid of non-SSA sources. This would come at the slight cost of some sort of load_reg
instruction (or maybe intrinsic) but they would only exist in the non-SSA world which isn't where we spend most of our time and there only for things that are involved in phi webs.