[llvm] e1edec1 - [LV] NFC: Add check for VF to vector_ptr_load_store.ll.
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 8 08:43:09 PST 2021
Author: Sander de Smalen
Date: 2021-12-08T16:41:59Z
New Revision: e1edec1ee68edbd5af5ae20892a38a33a773ad46
URL: https://github.com/llvm/llvm-project/commit/e1edec1ee68edbd5af5ae20892a38a33a773ad46
DIFF: https://github.com/llvm/llvm-project/commit/e1edec1ee68edbd5af5ae20892a38a33a773ad46.diff
LOG: [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.
Added:
Modified:
llvm/test/Transforms/LoopVectorize/X86/vector_ptr_load_store.ll
Removed:
################################################################################
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 acb5d6839f5ee..9cadaaa0550ef 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
More information about the llvm-commits
mailing list