working on rewriting compiler ir to fix reg alloc issues