[PATCH] D127511: [RISCV] Refine costs for i1 reductions
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 10 09:56:56 PDT 2022
craig.topper accepted this revision.
craig.topper added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp:327
+ if (Ty->getElementType()->isIntegerTy(1))
+ // vcpop sequences, see vreduction-mask.ll. umax, smin actually only
+ // cost 2, but we don't have enough info here so we slightly over cost.
----------------
I really hope that max/min of i1 don't occur in normal scenarios.
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