[PATCH] D77259: Clean up usages of asserting vector getters in Type
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 3 13:33:59 PDT 2020
efriedma added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/VectorCombine.cpp:259
+ auto *DestTy = dyn_cast<VectorType>(I.getType());
+ auto *SrcTy = dyn_cast<VectorType>(V->getType());
+ if (!DestTy || I.getOperand(0)->getType() != SrcTy)
----------------
SrcTy must be a vector here: it's the result type of a shufflevector.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77259/new/
https://reviews.llvm.org/D77259
More information about the llvm-commits
mailing list