[SVE] Remove VectorType::isScalable()
authorChristopher Tetreault <ctetreau@quicinc.com>
Thu, 23 Apr 2020 22:11:04 +0000 (15:11 -0700)
committerChristopher Tetreault <ctetreau@quicinc.com>
Thu, 23 Apr 2020 22:39:59 +0000 (15:39 -0700)
Summary:
* This is a property of the instance of VectorType. If
isa<ScalableVectorType>(T) is true, then T->isScalable() would have
returned true and vice-versa. Most code that checks this function uses
the result to bail out if a vector is a scalable vector. This code will
be cleaner if it just calls isa<ScalableVectorType>(T)

Reviewers: efriedma, craig.topper, huntergr, sdesmalen

Reviewed By: sdesmalen

Subscribers: tschuett, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D77690

llvm/include/llvm/IR/DerivedTypes.h

index dc0d201..5dcecae 100644 (file)
@@ -525,10 +525,6 @@ public:
   /// number of elements in the vector.
   ElementCount getElementCount() const { return EC; }
 
-  /// Returns whether or not this is a scalable vector (meaning the total
-  /// element count is a multiple of the minimum).
-  bool isScalable() const { return EC.Scalable; }
-
   /// Methods for support type inquiry through isa, cast, and dyn_cast.
   static bool classof(const Type *T) {
     return T->getTypeID() == FixedVectorTyID ||