[all-commits] [llvm/llvm-project] e78be3: [RISCV] Added cost model for fmuladd (#125683)
Mikhail R. Gadelha via All-commits
all-commits at lists.llvm.org
Wed Feb 5 04:33:46 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e78be316394509a665796a325603fe773346fbba
https://github.com/llvm/llvm-project/commit/e78be316394509a665796a325603fe773346fbba
Author: Mikhail R. Gadelha <mikhail at igalia.com>
Date: 2025-02-05 (Wed, 05 Feb 2025)
Changed paths:
M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
M llvm/test/Analysis/CostModel/RISCV/arith-fp.ll
M llvm/test/Transforms/LoopVectorize/RISCV/bf16.ll
M llvm/test/Transforms/SLPVectorizer/RISCV/revec-getGatherCost.ll
Log Message:
-----------
[RISCV] Added cost model for fmuladd (#125683)
This patch updates the cost model for fmuladd on vector types to scale with LMUL. This was found when analyzing a hot loop in 519.lbm_r that was unprofitably vectorized, but doesn't directly impact that case and is split off so it doesn't get forgotten.
Unlike other FP arithmetic ops, it's not scaled by 2 because the scalar cost isn't scaled by 2.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list