[InstCombine] remove compound fdiv pattern folds
authorSanjay Patel <spatel@rotateright.com>
Tue, 20 Feb 2018 16:52:17 +0000 (16:52 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 20 Feb 2018 16:52:17 +0000 (16:52 +0000)
commitb2d978682b2ddd957d802d209a338f89031fabc0
treee0013684936c202c59e367c5c4c4c38380f8ac55
parent4b9bc239eec851fdb761569e36febae19b764a8e
[InstCombine] remove compound fdiv pattern folds

These are fdiv-with-constant-divisor, so they already become
reciprocal multiplies. The last gap for vector ops should be
closed with rL325590.

It's possible that we're missing folds for some edge cases
with denormal intermediate constants after deleting these,
but there are no tests for those patterns, and it would be
better to handle denormals more consistently (and less
conservatively) as noted in TODO comments.

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