[all-commits] [llvm/llvm-project] ed0dbf: InstCombine: Remove dead fsub-as-fneg handling

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Aug 2 07:43:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed0dbfef7a99779ce0a6cd3c4678fd40e93f737b
      https://github.com/llvm/llvm-project/commit/ed0dbfef7a99779ce0a6cd3c4678fd40e93f737b
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-08-02 (Wed, 02 Aug 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp

  Log Message:
  -----------
  InstCombine: Remove dead fsub-as-fneg handling

The above combine matching m_FNeg to produce a new fneg always would
hide this.


  Commit: 020d2fb7711d70e296f19d83565f8d93d2cfda71
      https://github.com/llvm/llvm-project/commit/020d2fb7711d70e296f19d83565f8d93d2cfda71
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-08-02 (Wed, 02 Aug 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp

  Log Message:
  -----------
  InstCombine: Avoid repeated m_OneUse checks

The check was repeated for the fmul and fdiv case, and the caller was
already checking anyway.


Compare: https://github.com/llvm/llvm-project/compare/7c349c369847...020d2fb7711d


More information about the All-commits mailing list