[all-commits] [llvm/llvm-project] 425d1a: [RISCV] Handle scalarized reductions in getArithme...
Luke Lau via All-commits
all-commits at lists.llvm.org
Fri Apr 25 16:47:07 PDT 2025
Branch: refs/heads/release/20.x
Home: https://github.com/llvm/llvm-project
Commit: 425d1aad294f1132ed90d79ff51320ac2dfcb72d
https://github.com/llvm/llvm-project/commit/425d1aad294f1132ed90d79ff51320ac2dfcb72d
Author: Luke Lau <luke at igalia.com>
Date: 2025-04-25 (Fri, 25 Apr 2025)
Changed paths:
M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
M llvm/test/Analysis/CostModel/RISCV/reduce-fadd.ll
Log Message:
-----------
[RISCV] Handle scalarized reductions in getArithmeticReductionCost
This fixes a crash reported at
https://github.com/llvm/llvm-project/pull/114250#issuecomment-2813686061
If the vector type isn't legal at all, e.g. bfloat with +zvfbfmin,
then the legalized type will be scalarized. So use getScalarType()
instead of getVectorElement() when checking for f16/bf16.
(cherry picked from commit 053451cb3502144564b4d0b30a9046045d1820d4)
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