aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/Loads.cpp
diff options
context:
space:
mode:
authorSander de Smalen <sander.desmalen@arm.com>2023-03-02 11:46:10 +0000
committerSander de Smalen <sander.desmalen@arm.com>2023-03-02 12:07:41 +0000
commit170e7a0ec2e6d29cb642ece0bf34f395453d5e68 (patch)
tree15e822aef5e066ad5484bfa67065f48b3e365d70 /llvm/lib/Analysis/Loads.cpp
parentb4d9ac8b453e20e4223b5935c700698608a6425c (diff)
downloadllvm-170e7a0ec2e6d29cb642ece0bf34f395453d5e68.zip
llvm-170e7a0ec2e6d29cb642ece0bf34f395453d5e68.tar.gz
llvm-170e7a0ec2e6d29cb642ece0bf34f395453d5e68.tar.bz2
[AArch64][SME2] Add CodeGen support for target("aarch64.svcount").
This patch adds AArch64 CodeGen support such that the type can be passed and returned to/from functions, and also adds support to use this type in load/store operations and PHI nodes. Reviewed By: paulwalker-arm Differential Revision: https://reviews.llvm.org/D136862
Diffstat (limited to 'llvm/lib/Analysis/Loads.cpp')
-rw-r--r--llvm/lib/Analysis/Loads.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/Loads.cpp b/llvm/lib/Analysis/Loads.cpp
index f553333..48e435a 100644
--- a/llvm/lib/Analysis/Loads.cpp
+++ b/llvm/lib/Analysis/Loads.cpp
@@ -204,7 +204,7 @@ bool llvm::isDereferenceableAndAlignedPointer(
const TargetLibraryInfo *TLI) {
// For unsized types or scalable vectors we don't know exactly how many bytes
// are dereferenced, so bail out.
- if (!Ty->isSized() || isa<ScalableVectorType>(Ty))
+ if (!Ty->isSized() || Ty->isScalableTy())
return false;
// When dereferenceability information is provided by a dereferenceable