llvm-project
053451cb - [RISCV] Handle scalarized reductions in getArithmeticReductionCost

Commit
307 days ago
[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.
Author
Committer
Parents
Loading