[PATCH] D107914: [PowerPC] Disable CTR Loop generate for fma with the PPC double double type.

Amy Kwan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 11 10:16:43 PDT 2021


amyk created this revision.
amyk added reviewers: PowerPC, nemanjai, stefanp.
amyk added projects: PowerPC, LLVM.
Herald added subscribers: shchenz, kbarton, hiraditya.
amyk requested review of this revision.

It is possible to generate the `llvm.fmuladd.ppcf128` intrinsic, and there is no actual 
FMA instruction that corresponds to this intrinsic call for ppcf128. Thus, this
intrinsic needs to remain as a call as it cannot be lowered to any instruction, which
also means we need to disable CTR loop generation for fma involving the ppcf128 type.
This patch accomplishes this behaviour.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107914

Files:
  llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
  llvm/test/CodeGen/PowerPC/disable-ctr-ppcf128.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107914.365788.patch
Type: text/x-patch
Size: 7038 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210811/23655a88/attachment.bin>


More information about the llvm-commits mailing list