[InstSimplify] reduce code duplication for fmul folds; NFC
authorSanjay Patel <spatel@rotateright.com>
Mon, 3 Oct 2022 21:36:55 +0000 (17:36 -0400)
committerSanjay Patel <spatel@rotateright.com>
Tue, 4 Oct 2022 14:29:53 +0000 (10:29 -0400)
commit7f7a0f2f83c741908407a16c1c4f6a671b6b6081
tree06835706e37145121a17b8f8566e0400fb5c2ef7
parentc93104073c8a864113a42cde0cceb3e9c21bbf8d
[InstSimplify] reduce code duplication for fmul folds; NFC

This is a modification of the earlier attempt from:
7b7940f9da80

For fma callers, we only want to swap a 0.0 or 1.0 constant.
llvm/lib/Analysis/InstructionSimplify.cpp