[all-commits] [llvm/llvm-project] f43b22: PowerPC: Don't hoist float multiply + add to fused...

Justin Hibbits via All-commits all-commits at lists.llvm.org
Wed Aug 10 08:05:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f43b2285815961da057af1a772bc31d0152d286b
      https://github.com/llvm/llvm-project/commit/f43b2285815961da057af1a772bc31d0152d286b
  Author: Justin Hibbits <jrh29 at alumni.cwru.edu>
  Date:   2022-08-10 (Wed, 10 Aug 2022)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/test/CodeGen/PowerPC/fma-assoc.ll
    M llvm/test/CodeGen/PowerPC/pr55463.ll

  Log Message:
  -----------
  PowerPC: Don't hoist float multiply + add to fused operation on SPE

SPE doesn't have a fmadd instruction, so don't bother hoisting a
multiply and add sequence to this, as it'd become just a library call.
Hoisting happens too late for the CTR usability test to veto using the
CTR in a loop, and results in an assert "Invalid PPC CTR loop!".




More information about the All-commits mailing list