[all-commits] [llvm/llvm-project] c64ca9: clang: Treat ieee mode as the default for denormal...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Mar 4 20:34:08 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c64ca93053af235bac0ca4dcdcd21c8882478310
      https://github.com/llvm/llvm-project/commit/c64ca93053af235bac0ca4dcdcd21c8882478310
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-03-04 (Wed, 04 Mar 2020)

  Changed paths:
    M clang/include/clang/Basic/CodeGenOptions.h
    M clang/include/clang/Driver/ToolChain.h
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/CodeGenCUDA/flush-denormals.cu
    M clang/test/CodeGenCUDA/propagate-metadata.cu
    M clang/test/CodeGenOpenCL/amdgpu-features.cl
    M clang/test/Driver/cuda-flush-denormals-to-zero.cu
    M clang/test/Driver/denormal-fp-math.c
    M clang/test/Driver/fp-model.c

  Log Message:
  -----------
  clang: Treat ieee mode as the default for denormal-fp-math

The IR hasn't switched the default yet, so explicitly add the ieee
attributes.

I'm still not really sure how the target default denormal mode should
interact with -fno-unsafe-math-optimizations. The target may have
selected the default mode to be non-IEEE based on the flags or based
on its true behavior, but we don't know which is the case. Since the
only users of a non-IEEE mode without a flag still support IEEE mode,
just reset to IEEE.




More information about the All-commits mailing list