[PATCH] D94010: [AMDGPU] Handle v_fmac_legacy_f32 in SIFoldOperands

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 4 03:04:17 PST 2021


foad created this revision.
foad added reviewers: arsenm, rampitec, mareko.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
foad requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Convert it to v_fma_legacy_f32 if it is profitable to do so, just like
other mac instructions that are converted to their mad equivalents.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94010

Files:
  llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
  llvm/test/CodeGen/AMDGPU/llvm.amdgcn.fma.legacy.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94010.314346.patch
Type: text/x-patch
Size: 7346 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210104/00c896cf/attachment.bin>


More information about the llvm-commits mailing list