[PATCH] D97961: [Cost]Caonicalize the cost for logical or/and reductions.
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 4 08:59:26 PST 2021
ABataev added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/BasicTTIImpl.h:1909
+ // FIXME: some targets did not implement cost for vector-to-int bitcast.
+ return getCastInstrCost(Instruction::BitCast, ValTy, Ty,
+ TTI::CastContextHint::None, CostKind) +
----------------
SystemZ cost model does not implement vector-to-int bitcast and crashes. That's why have to use `Base::getCastInstrCost()` here rather than `thisT()->getCastInstrCost()`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97961/new/
https://reviews.llvm.org/D97961
More information about the llvm-commits
mailing list