[all-commits] [llvm/llvm-project] 073cc2: [X86][Reduce] Preserve fast math flags when change...

Phoebe Wang via All-commits all-commits at lists.llvm.org
Fri Dec 23 20:17:53 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 073cc29e04b756cb4997bf3538c733c0938cd4ae
      https://github.com/llvm/llvm-project/commit/073cc29e04b756cb4997bf3538c733c0938cd4ae
  Author: Phoebe Wang <phoebe.wang at intel.com>
  Date:   2022-12-24 (Sat, 24 Dec 2022)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    A clang/test/CodeGen/builtins-x86-reduce.c

  Log Message:
  -----------
  [X86][Reduce] Preserve fast math flags when change it. NFCI

@arsenm raised a good question that we should use a flag guard.
But I found it is not a problem as long as user uses intrinsics only: https://godbolt.org/z/WoYsqqjh3
Anyway, it is still nice to have.

Reviewed By: arsenm

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




More information about the All-commits mailing list