[all-commits] [llvm/llvm-project] 83cd4b: [Clang] Teach buildFMulAdd to peek through fneg to...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Feb 23 09:06:18 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 83cd4bea015feb5729871832784c424b0743a803
      https://github.com/llvm/llvm-project/commit/83cd4bea015feb5729871832784c424b0743a803
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-02-23 (Thu, 23 Feb 2023)

  Changed paths:
    M clang/lib/CodeGen/CGExprScalar.cpp
    M clang/test/CodeGen/constrained-math-builtins.c
    M clang/test/CodeGen/fp-contract-pragma.cpp

  Log Message:
  -----------
  [Clang] Teach buildFMulAdd to peek through fneg to find fmul.

Allows us to handle expressions like -(a * b) + c

Based on the examples from D144366 that gcc seems to get.

Reviewed By: kpn

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




More information about the All-commits mailing list