[all-commits] [llvm/llvm-project] ddd112: Remove BinaryOperator::CreateFNeg

Simon Moll via All-commits all-commits at lists.llvm.org
Thu Feb 27 09:07:00 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ddd11273d9d0807e25a34181e5978e3307d78dc2
      https://github.com/llvm/llvm-project/commit/ddd11273d9d0807e25a34181e5978e3307d78dc2
  Author: Simon Moll <simon.moll at emea.nec.com>
  Date:   2020-02-27 (Thu, 27 Feb 2020)

  Changed paths:
    M clang/test/CodeGen/complex-math.c
    M llvm/include/llvm/IR/InstrTypes.h
    M llvm/lib/IR/Instructions.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/lib/Transforms/Scalar/Reassociate.cpp
    M llvm/test/Transforms/InstCombine/cos-sin-intrinsic.ll
    M llvm/test/Transforms/InstCombine/fast-math.ll
    M llvm/test/Transforms/InstCombine/fmul.ll
    M llvm/test/Transforms/InstCombine/fneg.ll
    M llvm/test/Transforms/InstCombine/fpcast.ll
    M llvm/test/Transforms/InstCombine/fsub.ll
    M llvm/test/Transforms/InstCombine/maximum.ll
    M llvm/test/Transforms/InstCombine/maxnum.ll
    M llvm/test/Transforms/InstCombine/minimum.ll
    M llvm/test/Transforms/InstCombine/minmax-fp.ll
    M llvm/test/Transforms/InstCombine/minnum.ll
    M llvm/test/Transforms/InstCombine/pow-1.ll
    M llvm/test/Transforms/Reassociate/fast-basictest.ll
    M llvm/test/Transforms/Reassociate/fp-expr.ll

  Log Message:
  -----------
  Remove BinaryOperator::CreateFNeg

Use UnaryOperator::CreateFNeg instead.

Summary:
With the introduction of the native fneg instruction, the
fsub -0.0, %x idiom is obsolete. This patch makes LLVM
emit fneg instead of the idiom in all places.

Reviewed By: cameron.mcinally

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




More information about the All-commits mailing list