[PATCH] D89123: [AMDGPU] Only enable mad/mac legacy f32 patterns if denormals may be flushed

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 9 05:38:56 PDT 2020


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

Following on from D88890 <https://reviews.llvm.org/D88890>, this makes the newly added patterns
conditional on NoFP32Denormals. mad/mac f32 instructions always flush
denormals regardless of the MODE register setting, and I believe the
legacy variants do the same.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89123

Files:
  llvm/lib/Target/AMDGPU/SIInstructions.td
  llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.fmul.legacy.ll
  llvm/test/CodeGen/AMDGPU/llvm.amdgcn.fmul.legacy.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89123.297211.patch
Type: text/x-patch
Size: 7005 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201009/76f609de/attachment.bin>


More information about the llvm-commits mailing list