[PATCH] D88995: Support vectors in CastInst::isBitOrNoopPointerCastable
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 10 14:22:14 PDT 2020
lebedev.ri added inline comments.
================
Comment at: llvm/lib/IR/Instructions.cpp:3235-3237
+ if (VectorType *SrcVecTy = dyn_cast<VectorType>(SrcTy)) {
+ if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy)) {
+ if (SrcVecTy->getElementCount() == DestVecTy->getElementCount()) {
----------------
I think this is fixed vector specific, so you likely want `FixedVectorType`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88995/new/
https://reviews.llvm.org/D88995
More information about the llvm-commits
mailing list