[PATCH] D98049: [AMDGPU][GlobalISel] Transform (fsub (fpext (fmul x, y)), z) -> (fma (fpext x), (fpext y), (fneg z))

Mateja Marjanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 29 07:09:17 PDT 2021


matejam updated this revision to Diff 375876.
matejam added a comment.

Use m_MInstr instead of m_Reg in matching patterns (mi_match).
Instead of getting MachineInstr's, get only the Register values (no need for MachineInstr in this case).
A few minor bug fixes.
Formatting and refactoring.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98049/new/

https://reviews.llvm.org/D98049

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-fma-sub-ext-mul.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98049.375876.patch
Type: text/x-patch
Size: 12381 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210929/c6e9aca3/attachment.bin>


More information about the llvm-commits mailing list