[SDAG] add simplifications for FP at node creation time
authorSanjay Patel <spatel@rotateright.com>
Tue, 26 Mar 2019 20:54:15 +0000 (20:54 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 26 Mar 2019 20:54:15 +0000 (20:54 +0000)
commitbb5cba3cca070e0a7eb85ef25c513cd6b86ddd01
tree75e3a9ea201e0557e2a365e93ab5f9724681fbd4
parente1d79a87c6487b3e475eaa3a0314fb9b49d98be0
[SDAG] add simplifications for FP at node creation time

We have the folds for fadd/fsub/fmul already in DAGCombiner,
so it may be possible to remove that code if we can guarantee that
these ops are zapped before they can exist.

llvm-svn: 357029
llvm/include/llvm/CodeGen/SelectionDAG.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/X86/extract-fp.ll