[all-commits] [llvm/llvm-project] 581a80: [PowerPC] Disable CTR Loop generate for fma with t...

Amy Kwan via All-commits all-commits at lists.llvm.org
Fri Aug 13 10:27:39 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 581a80304c671b6cb2b1b1f87feb9fbe14875f2a
      https://github.com/llvm/llvm-project/commit/581a80304c671b6cb2b1b1f87feb9fbe14875f2a
  Author: Amy Kwan <amy.kwan1 at ibm.com>
  Date:   2021-08-13 (Fri, 13 Aug 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
    A llvm/test/CodeGen/PowerPC/disable-ctr-ppcf128.ll

  Log Message:
  -----------
  [PowerPC] Disable CTR Loop generate for fma with the PPC double double type.

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.

Differential Revision: https://reviews.llvm.org/D107914




More information about the All-commits mailing list