[Hexagon] Remove fp-contract=fast setting for at O3

Change Hexagon so that the setting for fp-contract is the default setting.
This makes Hexagon consistent with all other targets.

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

llvm-svn: 342078
This commit is contained in:
Brendon Cahoon 2018-09-12 20:35:56 +00:00
parent 6e551e0e49
commit e45c1eed0c
2 changed files with 1 additions and 6 deletions

View File

@ -513,11 +513,6 @@ unsigned HexagonToolChain::getOptimizationLevel(
void HexagonToolChain::addClangTargetOptions(const ArgList &DriverArgs,
ArgStringList &CC1Args,
Action::OffloadKind) const {
if (!DriverArgs.hasArg(options::OPT_ffp_contract)) {
unsigned OptLevel = getOptimizationLevel(DriverArgs);
if (OptLevel >= 3)
CC1Args.push_back("-ffp-contract=fast");
}
if (DriverArgs.hasArg(options::OPT_ffixed_r19)) {
CC1Args.push_back("-target-feature");
CC1Args.push_back("+reserved-r19");

View File

@ -110,7 +110,7 @@
// RUN: -O3 \
// RUN: %s 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK026 %s
// CHECK026: "-ffp-contract=fast"
// CHECK026-NOT: "-ffp-contract=fast"
// CHECK026: hexagon-link
// RUN: %clang -### -target hexagon-unknown-elf \