aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorChristopher Tetreault <ctetreau@quicinc.com>2020-04-23 12:45:34 -0700
committerChristopher Tetreault <ctetreau@quicinc.com>2020-04-23 12:58:52 -0700
commitccd623eae3fc858fad768884bda8471d9c0a387c (patch)
tree9a3e7e1974d304e1b224b51e6f2d011a00ccf03c /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent9174e0229fcbe32967addda74a7beb7bb43cf17c (diff)
downloadllvm-ccd623eae3fc858fad768884bda8471d9c0a387c.zip
llvm-ccd623eae3fc858fad768884bda8471d9c0a387c.tar.gz
llvm-ccd623eae3fc858fad768884bda8471d9c0a387c.tar.bz2
[SVE] Remove calls to isScalable from CodeGen
Reviewers: efriedma, sdesmalen, stoklund, sunfish Reviewed By: efriedma Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77755
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index d11d74a..3c95b2e 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -6959,7 +6959,7 @@ static bool splitMergedValStore(StoreInst &SI, const DataLayout &DL,
// whereas scalable vectors would have to be shifted by
// <2log(vscale) + number of bits> in order to store the
// low/high parts. Bailing out for now.
- if (StoreType->isVectorTy() && cast<VectorType>(StoreType)->isScalable())
+ if (isa<ScalableVectorType>(StoreType))
return false;
if (!DL.typeSizeEqualsStoreSize(StoreType) ||