Set FMF for -ffp-contract=fast
authorAdam Nemet <anemet@apple.com>
Tue, 4 Apr 2017 21:18:30 +0000 (21:18 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 4 Apr 2017 21:18:30 +0000 (21:18 +0000)
commit370d0877f6271a3cb88a6d07dade3438ccd9bbae
treece247b3c2cbfdee945303d7c264dd0a6cc2b21e6
parentb3120b6d3f59ea445ee6f28e944216253c93a1cb
Set FMF for -ffp-contract=fast

With this, FMF(contract) becomes an alternative way to express the request to
contract.

These are currently only propagated for FMul, FAdd and FSub.  The rest will be
added as more FMFs are hooked up for this.

This is toward fixing PR25721.

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

llvm-svn: 299469
clang/lib/CodeGen/CGExprScalar.cpp
clang/test/CodeGen/ffp-contract-fast-option.cpp [new file with mode: 0644]