[SVE] Remove calls to VectorType::getNumElements from CodeGen

Reviewers: efriedma, fpetrogalli, sdesmalen, RKSimon, arsenm

Reviewed By: RKSimon

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

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82210
This commit is contained in:
Christopher Tetreault
2020-07-09 11:51:03 -07:00
parent 469da663f2
commit ff5b9a7b3b
10 changed files with 38 additions and 27 deletions

View File

@@ -1765,7 +1765,7 @@ static std::string scalarConstantToHexString(const Constant *C) {
} else {
unsigned NumElements;
if (auto *VTy = dyn_cast<VectorType>(Ty))
NumElements = VTy->getNumElements();
NumElements = cast<FixedVectorType>(VTy)->getNumElements();
else
NumElements = Ty->getArrayNumElements();
std::string HexString;