aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/Loads.cpp
diff options
context:
space:
mode:
authorChristopher Tetreault <ctetreau@quicinc.com>2020-04-23 12:19:54 -0700
committerChristopher Tetreault <ctetreau@quicinc.com>2020-04-23 12:44:22 -0700
commit9174e0229fcbe32967addda74a7beb7bb43cf17c (patch)
tree08420b777f3a97ed48bfbf61ec57c6cf6789e2e1 /llvm/lib/Analysis/Loads.cpp
parent156afb2253eabf0e2d446dafd08e754d7b9f513a (diff)
downloadllvm-9174e0229fcbe32967addda74a7beb7bb43cf17c.zip
llvm-9174e0229fcbe32967addda74a7beb7bb43cf17c.tar.gz
llvm-9174e0229fcbe32967addda74a7beb7bb43cf17c.tar.bz2
[SVE] Remove calls to VectorType::isScalable from analysis
Reviewers: efriedma, sdesmalen, chandlerc, sunfish Reviewed By: efriedma Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77692
Diffstat (limited to 'llvm/lib/Analysis/Loads.cpp')
-rw-r--r--llvm/lib/Analysis/Loads.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/Loads.cpp b/llvm/lib/Analysis/Loads.cpp
index 9919440..02be369 100644
--- a/llvm/lib/Analysis/Loads.cpp
+++ b/llvm/lib/Analysis/Loads.cpp
@@ -148,8 +148,7 @@ bool llvm::isDereferenceableAndAlignedPointer(const Value *V, Type *Ty,
const DominatorTree *DT) {
// For unsized types or scalable vectors we don't know exactly how many bytes
// are dereferenced, so bail out.
- if (!Ty->isSized() ||
- (Ty->isVectorTy() && cast<VectorType>(Ty)->isScalable()))
+ if (!Ty->isSized() || isa<ScalableVectorType>(Ty))
return false;
// When dereferenceability information is provided by a dereferenceable