PHI Insertion

I think I may have asked this question before but I’m not sure I articulated exactly what I was trying to do.

So, I am redirecting a block such that:

Instruction does not dominate all uses!
%tmp25 = load i32* %nBits, align 4, !tbaa !3
%add110 = add i32 %tmp25, 7

Is there a pass/util/function that can be used to insert PHI nodes for this issue?

It would seem the SSAUpdater would be useful but I’m not sure how to use it over the whole function. Also, mem2reg, however, again, not sure how to use it for all types and not just allocas.