[PATCH] D127511: [RISCV] Refine costs for i1 reductions
LiqinWeng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 23 05:48:33 PDT 2022
Miss_Grape added inline comments.
================
Comment at: llvm/test/Analysis/CostModel/RISCV/reduce-max.ll:180
%V2 = call i16 @llvm.vector.reduce.smax.v2i16(<2 x i16> undef)
%V4 = call i16 @llvm.vector.reduce.smax.v4i16(<4 x i16> undef)
%V8 = call i16 @llvm.vector.reduce.smax.v8i16(<8 x i16> undef)
----------------
llvm.vector.reduce.smax.v2i16 and llvm.vector.reduce.smax.v4i16 have the same asemble, why
llvm.vector.reduce.smax.v2i16: cost model 3
llvm.vector.reduce.smax.v4i16: cost model 4
{F24241072}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127511/new/
https://reviews.llvm.org/D127511
More information about the llvm-commits
mailing list