[InstSimplify] reduce code duplication for fmul folds; NFC
The constant is already commuted for an fmul opcode, but this code can be called more directly for fma, so we have to swap for that caller. There are tests in InstSimplify and InstCombine to verify that this works as expected.
parent
4987ae84
Please register or sign in to comment