[PATCH] D29958: AMDGPU : Replace FMAD with FMA when denormals are enabled.

Wei Ding via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 16 22:21:22 PST 2017


wdng updated this revision to Diff 88857.
wdng marked 4 inline comments as done.
wdng added a comment.

As complex pattern causes pattern cannot be selected. So no complex pattern used for FMAD_FTZ pattern definition. Also the generated ISAs is different as fneg is being folded, so we have v_mac_f32 and v_mad_f32 respectively when denormals are enabled and disabled.


Repository:
  rL LLVM

https://reviews.llvm.org/D29958

Files:
  lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  lib/Target/AMDGPU/AMDGPUISelLowering.h
  lib/Target/AMDGPU/AMDGPUInstrInfo.td
  lib/Target/AMDGPU/SIInstructions.td
  test/CodeGen/AMDGPU/udiv.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29958.88857.patch
Type: text/x-patch
Size: 3918 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170217/edd4f09a/attachment.bin>


More information about the llvm-commits mailing list