diff options
author | Christopher Tetreault <ctetreau@quicinc.com> | 2020-06-16 14:05:21 -0700 |
---|---|---|
committer | Christopher Tetreault <ctetreau@quicinc.com> | 2020-06-16 14:16:15 -0700 |
commit | b3e77c6d55853eea5f5c32ec8a3510c0b0e438e1 (patch) | |
tree | ef4dd839368de3ee0e390d47b9b2f3dcf6978f6f /llvm/lib/CodeGen/LiveVariables.cpp | |
parent | 369d00df60dce4b107734a061c299971972ae55d (diff) | |
download | llvm-b3e77c6d55853eea5f5c32ec8a3510c0b0e438e1.zip llvm-b3e77c6d55853eea5f5c32ec8a3510c0b0e438e1.tar.gz llvm-b3e77c6d55853eea5f5c32ec8a3510c0b0e438e1.tar.bz2 |
[SVE] Remove invalid calls to VectorType::getNumElements from BasicTTIImpl
Summary:
Most of these operations are reasonable for scalable vectors. Due to
this, we have decided not to change the interface to specifically take
FixedVectorType despite the fact that the current implementations make
fixed width assumptions. Instead, we cast to FixedVectorType and assert
in the body. If a developer makes some change in the future that causes
one of these asserts to fire, they should either change their code or
make the function they are trying to call handle scalable vectors.
Reviewers: efriedma, samparker, RKSimon, craig.topper, sdesmalen, c-rhodes
Reviewed By: efriedma
Subscribers: tschuett, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D81495
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
0 files changed, 0 insertions, 0 deletions