forked from OSchip/llvm-project
[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:
parent
6e551e0e49
commit
e45c1eed0c
|
@ -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");
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue