HomeFreeBSD

Apply tentative llvm fix for avoiding fma on PowerPC SPE

Description

Apply tentative llvm fix for avoiding fma on PowerPC SPE

Merge llvm review D77558, by Justin Hibbits:

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!".

Reported by: alfredo
Obtained from: https://reviews.llvm.org/D77558
MFC after: 3 days

(cherry picked from commit 9ef1127008ce94cf626daed346a3c1ee03063617)

Details

Provenance
dimAuthored on Jul 9 2022, 1:03 PM
Parents
rGb36f85590dcc: Apply clang fix for assertion building llvm with libc++ 15
Branches
Unknown
Tags
Unknown