Hi,
This patch changes the way we delete Insns in TypePromotion, such that we don't do it while iterating over the same BB we are deleting from. This hasn't been an issue before, I suspect because when searching up from icmp's we only delete Insns that are before the current Insn or in other BBs, but with the changes proposed in D111237 it will be an issue.