Handle Constant folding through Phi nodes