Kill IRGenMode and branch-inversion optimization during IR generation