aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues.cpp
diff options
context:
space:
mode:
authorHuihui Zhang <huihuiz@quicinc.com>2020-03-13 11:23:01 -0700
committerHuihui Zhang <huihuiz@quicinc.com>2020-03-13 11:23:31 -0700
commitfc1f205745003eeeabd4ee356dea7e5c7fa4fd64 (patch)
treed3324708aa9218397dd2c899d9c536d832f380db /llvm/lib/CodeGen/LiveDebugValues.cpp
parent842ea709e4ed881c2bc59155af5df910eccda9c6 (diff)
downloadllvm-fc1f205745003eeeabd4ee356dea7e5c7fa4fd64.zip
llvm-fc1f205745003eeeabd4ee356dea7e5c7fa4fd64.tar.gz
llvm-fc1f205745003eeeabd4ee356dea7e5c7fa4fd64.tar.bz2
[SLPVectorizer][SVE] Bail out early for scalable vector.
Summary: SLPVectorizer try to vectorize list of scalar instructions of the same type, instructions already vectorized are rejected through isValidElementType(). Without this patch, tryToVectorizeList() will first try to determine vectorization factor of a list of Instructions before checking whether each instruction has unsupported type or not. For instructions already vectorized for SVE, it will crash at getVectorElementSize(), where it try to return a fixed size. This patch make sure invalid element types are rejected before trying to get vectorization factor. This make sure we are not trying to vectorize instructions already vectorized. Reviewers: sdesmalen, efriedma, spatel, RKSimon, ABataev, apazos, rengolin Reviewed By: efriedma Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76017
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp')
0 files changed, 0 insertions, 0 deletions