[DAGCombiner] refactor FP->int->FP folds; NFC
authorSanjay Patel <spatel@rotateright.com>
Thu, 26 Apr 2018 15:20:18 +0000 (15:20 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 26 Apr 2018 15:20:18 +0000 (15:20 +0000)
commita5da08638699d1755a634f19099c133305efa342
treef9ea3f644bcb090c1ddf0663d83c3a94e157e5f9
parent4f38ffa63c7b7a4b8383e58146cc17b13946ccb2
[DAGCombiner] refactor FP->int->FP folds; NFC

As discussed in the post-review comments for rL330437,
we need to guard this fold to allow existing code to
keep working with the undefined behavior that they've
come to rely on.

That would mean duplicating more code than we already
have, so let's fix that first.

llvm-svn: 330947
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp