[InstCombine] refactor fdiv with constant dividend folds; NFC
authorSanjay Patel <spatel@rotateright.com>
Mon, 19 Feb 2018 21:17:58 +0000 (21:17 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 19 Feb 2018 21:17:58 +0000 (21:17 +0000)
commite41295495363d100d23e798dc973209ff641641b
tree06b0f8b279e16d76a7d70b7728fa7326e08b3581
parente82cc6fcc5f763445fd8416b7f4786f226cc4420
[InstCombine] refactor fdiv with constant dividend folds; NFC

The last fold that used to be here was not necessary. That's a
combination of 2 folds (and there's a regression test to show that).

The transforms are guarded by isFast(), but that should be loosened.

llvm-svn: 325531
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp