[all-commits] [llvm/llvm-project] fd855c: [PowerPC] Restore FastMathFlags of Builder for Vec...

Kamau Bridgeman via All-commits all-commits at lists.llvm.org
Tue Jul 20 07:41:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd855c24c72ce01573d726317acaaefc9809d9dc
      https://github.com/llvm/llvm-project/commit/fd855c24c72ce01573d726317acaaefc9809d9dc
  Author: Quinn Pham <quinn.pham at ibm.com>
  Date:   2021-07-20 (Tue, 20 Jul 2021)

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

  Log Message:
  -----------
  [PowerPC] Restore FastMathFlags of Builder for Vector FDiv Builtins

This patch fixes `__builtin_ppc_recipdivf`, `__builtin_ppc_recipdivd`,
`__builtin_ppc_rsqrtf`, and `__builtin_ppc_rsqrtd`. FastMathFlags are
set to fast immediately before emitting these builtins. Now the flags
are restored to their previous values after the builtins are emitted.

Reviewed By: nemanjai, #powerpc

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




More information about the All-commits mailing list