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

Pierre van Houtryve via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 21 04:24:11 PDT 2022


Pierre-vh created this revision.
Pierre-vh added a reviewer: arsenm.
Herald added subscribers: kosarev, kerbowa, hiraditya, jvesely.
Herald added a project: All.
Pierre-vh requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Allows for better matching of VOP3 mods.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136442

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136442.469551.patch
Type: text/x-patch
Size: 22251 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221021/654a4d19/attachment.bin>


More information about the llvm-commits mailing list