[all-commits] [llvm/llvm-project] 053451: [RISCV] Handle scalarized reductions in getArithme...
Luke Lau via All-commits
all-commits at lists.llvm.org
Mon Apr 21 01:07:54 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 053451cb3502144564b4d0b30a9046045d1820d4
https://github.com/llvm/llvm-project/commit/053451cb3502144564b4d0b30a9046045d1820d4
Author: Luke Lau <luke at igalia.com>
Date: 2025-04-21 (Mon, 21 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.
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