[all-commits] [llvm/llvm-project] 020a9d: [GISel] Add (fsub +-0.0, X) -> fneg combine

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Thu Nov 3 01:22:04 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 020a9d7b20a2f405b6fd61be0d9f946da44c79af
      https://github.com/llvm/llvm-project/commit/020a9d7b20a2f405b6fd61be0d9f946da44c79af
  Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
    M llvm/include/llvm/Target/GlobalISel/Combine.td
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    A llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fsub-fneg.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/fmed3.ll
    M llvm/test/CodeGen/AMDGPU/v_pack.ll

  Log Message:
  -----------
  [GISel] Add (fsub +-0.0, X) -> fneg combine

Allows for better matching of VOP3 mods.

Reviewed By: arsenm

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




More information about the All-commits mailing list