[all-commits] [llvm/llvm-project] 8c36ea: [clang][opencl][codegen] Remove the insertion of `...

darkbuck via All-commits all-commits at lists.llvm.org
Thu Oct 1 08:08:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c36eaf0377285acb89c319582d9666e60f42007
      https://github.com/llvm/llvm-project/commit/8c36eaf0377285acb89c319582d9666e60f42007
  Author: Michael Liao <michael.hliao at gmail.com>
  Date:   2020-10-01 (Thu, 01 Oct 2020)

  Changed paths:
    M clang/lib/CodeGen/CGCall.cpp
    M clang/test/CodeGenOpenCL/amdgpu-attrs.cl
    M clang/test/CodeGenOpenCL/fpmath.cl

  Log Message:
  -----------
  [clang][opencl][codegen] Remove the insertion of `correctly-rounded-divide-sqrt-fp-math` fn-attr.

- `-cl-fp32-correctly-rounded-divide-sqrt` is already handled in a
  per-instruction manner by annotating the accuracy required. There's no
  need to add that fn-attr. So far, there's no in-tree backend handling
  that attr and that OpenCL specific option.
- In case that out-of-tree backends are broken, this change could be
  reverted if those backends could not be fixed.

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




More information about the All-commits mailing list