[all-commits] [llvm/llvm-project] 3a95d7: [clang] Fix -fp-model={strict|precise} to disable ...

KAWASHIMA Takahiro via All-commits all-commits at lists.llvm.org
Mon Nov 21 20:05:38 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a95d7d0983af26811e72d238d94f11c25f1851a
      https://github.com/llvm/llvm-project/commit/3a95d7d0983af26811e72d238d94f11c25f1851a
  Author: KAWASHIMA Takahiro <t-kawashima at fujitsu.com>
  Date:   2022-11-22 (Tue, 22 Nov 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/CodeGen/fp-options-to-fast-math-flags.c
    M clang/test/Driver/fast-math.c
    M clang/test/Driver/fp-model.c

  Log Message:
  -----------
  [clang] Fix -fp-model={strict|precise} to disable -fapprox-func

`-fapprox-func` should be disabled by `-fp-model={strict|precise}`,
as well as other fast-math flags. See the last changes in
`clang/test/Driver/fp-model.c`.

Probably this route (`case options::OPT_ffp_model_EQ`) was forgot
to update in D106191 and D114564. There is no appropriate reason not
to disable the flag.

This commit also updates other regression tests, which are not directly
related to this bug, for consistency with other fast-math flags.

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




More information about the All-commits mailing list