[PATCH] D120439: [SLP] Fix for the min/max intrinsic cost.
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 23 16:05:04 PST 2022
ABataev added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:5128
if (IntrinsicAndUse.second)
- IntrinsicCost -=
- TTI->getCmpSelInstrCost(Instruction::ICmp, VecTy, MaskTy,
- CmpInst::BAD_ICMP_PREDICATE, CostKind);
+ IntrinsicCost -= VecCost;
VecCost = std::min(VecCost, IntrinsicCost);
----------------
This is not correct, the original code is correct. Need to check more carefully the cause and probably fix the comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120439/new/
https://reviews.llvm.org/D120439
More information about the llvm-commits
mailing list