diff options
author | Sander de Smalen <sander.desmalen@arm.com> | 2021-12-08 15:54:05 +0000 |
---|---|---|
committer | Sander de Smalen <sander.desmalen@arm.com> | 2021-12-08 16:41:59 +0000 |
commit | e1edec1ee68edbd5af5ae20892a38a33a773ad46 (patch) | |
tree | 82e62f17d439b0b4bd6cebdc2b26630b77b92e15 /llvm | |
parent | a6e5563dfaff0cb7147058b9c49e38b611a28fb1 (diff) | |
download | llvm-e1edec1ee68edbd5af5ae20892a38a33a773ad46.zip llvm-e1edec1ee68edbd5af5ae20892a38a33a773ad46.tar.gz llvm-e1edec1ee68edbd5af5ae20892a38a33a773ad46.tar.bz2 |
[LV] NFC: Add check for VF to vector_ptr_load_store.ll.
This just adds some extra CHECK lines to show the effect
of a follow-up patch.
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/test/Transforms/LoopVectorize/X86/vector_ptr_load_store.ll | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/X86/vector_ptr_load_store.ll b/llvm/test/Transforms/LoopVectorize/X86/vector_ptr_load_store.ll index acb5d68..9cadaaa 100644 --- a/llvm/test/Transforms/LoopVectorize/X86/vector_ptr_load_store.ll +++ b/llvm/test/Transforms/LoopVectorize/X86/vector_ptr_load_store.ll @@ -17,7 +17,8 @@ target triple = "x86_64-apple-macosx10.8.0" ; widest vector count. ; ; CHECK: test_consecutive_store -; CHECK: The Smallest and Widest types: 64 / 64 bits. +; CHECK: LV: The Smallest and Widest types: 64 / 64 bits. +; CHECK: LV: Selecting VF: 4 define void @test_consecutive_store(%0**, %0**, %0** nocapture) nounwind ssp uwtable align 2 { %4 = load %0*, %0** %2, align 8 %5 = icmp eq %0** %0, %1 @@ -51,7 +52,8 @@ define void @test_consecutive_store(%0**, %0**, %0** nocapture) nounwind ssp uwt ; p[i][y] = (int*) (1 + q[i]); ; } ; CHECK: test_nonconsecutive_store -; CHECK: The Smallest and Widest types: 16 / 16 bits. +; CHECK: LV: The Smallest and Widest types: 16 / 16 bits. +; CHECK: LV: Selecting VF: 1 define void @test_nonconsecutive_store() nounwind ssp uwtable { br label %1 @@ -93,7 +95,8 @@ define void @test_nonconsecutive_store() nounwind ssp uwtable { ;; Now we check the same rules for loads. We should take consecutive loads of ;; pointer types into account. ; CHECK: test_consecutive_ptr_load -; CHECK: The Smallest and Widest types: 8 / 64 bits. +; CHECK: LV: The Smallest and Widest types: 8 / 64 bits. +; CHECK: LV: Selecting VF: 4 define i8 @test_consecutive_ptr_load() nounwind readonly ssp uwtable { br label %1 @@ -118,6 +121,7 @@ define i8 @test_consecutive_ptr_load() nounwind readonly ssp uwtable { ;; However, we should not take unconsecutive loads of pointers into account. ; CHECK: test_nonconsecutive_ptr_load ; CHECK: LV: The Smallest and Widest types: 16 / 16 bits. +; CHECK: LV: Selecting VF: 1 define void @test_nonconsecutive_ptr_load() nounwind ssp uwtable { br label %1 |