It is possible that an instruction to be changed to unreachable is in the same block with a terminator that can be constant-folded.
In this case, as of now, the instruction will be changed to unreachable before the terminator is folded. But, then the whole BB becomes
invalidated and so when we go ahead to fold the terminator, we trap.
Change the order of these two.