[InstSimplify] reduce code duplication for fmin/fmax folds; NFC
authorSanjay Patel <spatel@rotateright.com>
Mon, 14 Sep 2020 14:32:11 +0000 (10:32 -0400)
committerSanjay Patel <spatel@rotateright.com>
Mon, 14 Sep 2020 14:32:11 +0000 (10:32 -0400)
commit22c583c3d03a6750d6474ad46e5d52eb9974e2b0
tree5527f8e8294070e02f66a14af588aa5a5a094462
parentdae68fdf9ece930ad158e15966cb99a15636e8c7
[InstSimplify] reduce code duplication for fmin/fmax folds; NFC

We use the same code structure for folding integer min/max.
llvm/lib/Analysis/InstructionSimplify.cpp