[SVE] Do not store a bool for Scalable in VectorType
authorChristopher Tetreault <ctetreau@quicinc.com>
Fri, 24 Apr 2020 17:11:24 +0000 (10:11 -0700)
committerChristopher Tetreault <ctetreau@quicinc.com>
Fri, 24 Apr 2020 17:36:26 +0000 (10:36 -0700)
commit947be4a024b9701fcfd36656e01ba59bd7e2f486
tree7e4942ed8301a5fb00c93bc83fa0b2ea2bf9abfd
parent4cf73a3fc665743474cfe96cbb51bffabea0255f
[SVE] Do not store a bool for Scalable in VectorType

Summary:
- Whether or not a vector is scalable is a function of its type. Since
all instances of ScalableVectorType will have true for this value and
all instances of FixedVectorType will have false for this value, there
is no need to store it as a class member.

Reviewers: efriedma, fpetrogalli, kmclaughlin

Reviewed By: fpetrogalli

Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78601
llvm/include/llvm/IR/DerivedTypes.h
llvm/lib/IR/Type.cpp