diff options
author | David Sherwood <david.sherwood@arm.com> | 2021-07-30 11:43:14 +0100 |
---|---|---|
committer | David Sherwood <david.sherwood@arm.com> | 2021-08-05 14:39:08 +0100 |
commit | 21bf8172dbbc0b542e236c04e0065132106e9048 (patch) | |
tree | 90a4c6117a4651380c1bd731adace4f5390abeee | |
parent | 75aa3d520d53fb0d2a279736245ad255ec720a5b (diff) | |
download | llvm-21bf8172dbbc0b542e236c04e0065132106e9048.tar.gz |
[NFC] Remove redundant test in Transforms/LoopVectorize/lifetime.ll
The two tests (@testloopvariant and @testbitcast) are actually
identical as in both loops the bitcast gets widened, forcing the
lifetime marker to be replicated using each lane of the input
vector.
Differential Revision: https://reviews.llvm.org/D107150
-rw-r--r-- | llvm/test/Transforms/LoopVectorize/lifetime.ll | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/lifetime.ll b/llvm/test/Transforms/LoopVectorize/lifetime.ll index 860fe2d983cd..7c0bbb1f0832 100644 --- a/llvm/test/Transforms/LoopVectorize/lifetime.ll +++ b/llvm/test/Transforms/LoopVectorize/lifetime.ll @@ -63,34 +63,6 @@ for.end: ret void } -; CHECK-LABEL: @testloopvariant( -; CHECK: call void @llvm.lifetime.end -; CHECK: store <2 x i32> -; CHECK: call void @llvm.lifetime.start - -define void @testloopvariant(i32 *%d) { -entry: - %arr = alloca [1024 x i32], align 16 - br label %for.body - -for.body: - %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ] - %0 = getelementptr [1024 x i32], [1024 x i32]* %arr, i32 0, i64 %indvars.iv - %1 = bitcast [1024 x i32]* %arr to i8* - call void @llvm.lifetime.end.p0i8(i64 4096, i8* %1) #1 - %arrayidx = getelementptr inbounds i32, i32* %d, i64 %indvars.iv - %2 = load i32, i32* %arrayidx, align 8 - store i32 100, i32* %arrayidx, align 8 - call void @llvm.lifetime.start.p0i8(i64 4096, i8* %1) #1 - %indvars.iv.next = add i64 %indvars.iv, 1 - %lftr.wideiv = trunc i64 %indvars.iv.next to i32 - %exitcond = icmp ne i32 %lftr.wideiv, 128 - br i1 %exitcond, label %for.body, label %for.end - -for.end: - ret void -} - declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) #1 declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) #1 |