Use the 'arcp' fast-math-flag when combining repeated FP divisors
authorSanjay Patel <spatel@rotateright.com>
Tue, 27 Oct 2015 20:27:25 +0000 (20:27 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 27 Oct 2015 20:27:25 +0000 (20:27 +0000)
commit6f6bce9783015e86cce87cbdb66c243bb0c0b8f9
treeb7e4ff825729bf80f1173b2a4462bef3d78e08eb
parentb69ac2c5aaeec17848a98f354507bbafd7dce9bc
Use the 'arcp' fast-math-flag when combining repeated FP divisors

This is a usage of the IR-level fast-math-flags now that they are propagated to SDNodes.
This was originally part of D8900.

Removing the global 'enable-unsafe-fp-math' checks will require auto-upgrade and
possibly other changes.

Differential Revision: http://reviews.llvm.org/D9708

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251450 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/fdiv-combine.ll