[all-commits] [llvm/llvm-project] e989e3: [RISCV] Mark f16/bf16 lrint and llrint cost as inv...
Luke Lau via All-commits
all-commits at lists.llvm.org
Wed Oct 30 08:21:39 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e989e31a47375a7d556269eead538dc65edcef2b
https://github.com/llvm/llvm-project/commit/e989e31a47375a7d556269eead538dc65edcef2b
Author: Luke Lau <luke at igalia.com>
Date: 2024-10-30 (Wed, 30 Oct 2024)
Changed paths:
M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
M llvm/test/Analysis/CostModel/RISCV/fround.ll
Log Message:
-----------
[RISCV] Mark f16/bf16 lrint and llrint cost as invalid (#113924)
We currently can't lower scalable vector lrint and llrint nodes for bf16
and f16, even with zvfh, and will crash.
Mark the cost as invalid for now to prevent the vectorizers from
emitting them.
Note that we can actually lower fixed-length vectors fine by scalarizing
them, but we were still undercosting these too so I've also included
them. I presume there's an opportunity to improve the codegen later on.
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