[PATCH] D152523: [LV] Add cost model for simd vector select instructions of type float
Allen zhong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 9 04:51:59 PDT 2023
Allen created this revision.
Allen added reviewers: dmgreen, david-arm, fhahn, silviu.baranga, mcrosier.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
Allen requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.
For simd vector selects, use cmeq + bsl for v2f32/v4f32/v2f64, so their cost are cheep.
Fix https://github.com/llvm/llvm-project/issues/63082
https://reviews.llvm.org/D152523
Files:
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/AArch64/select.ll
llvm/test/Analysis/CostModel/AArch64/vector-select.ll
llvm/test/Transforms/PhaseOrdering/AArch64/hoisting-sinking-required-for-vectorization.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152523.529913.patch
Type: text/x-patch
Size: 13475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230609/dba7c922/attachment.bin>
More information about the llvm-commits
mailing list