[InstCombine] move fold of select of add/sub to helper function; NFCI

llvm-svn: 272199
1 file changed