[SDAG] Add AllowContract to SNodeFlags
authorAdam Nemet <anemet@apple.com>
Tue, 28 Mar 2017 23:46:08 +0000 (23:46 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 28 Mar 2017 23:46:08 +0000 (23:46 +0000)
commit6820f391eba0beb7d0da48c3a3a746ac19bba4d9
treeaf26dec76b1cba46b61087ab1d00b20675feaa27
parent192d8520dea72472d70096c7b1e1e2a5875ccf82
[SDAG] Add AllowContract to SNodeFlags

Properly propagate the FMF from the LLVM IR to this flag.

This is toward moving fp-contraction=fast from an LLVM TargetOption to a
FastMathFlag in order to fix PR25721.

Differential Revision: https://reviews.llvm.org/D31165

llvm-svn: 298961
llvm/include/llvm/CodeGen/SelectionDAGNodes.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp