[PATCH] D107150: [NFC] Remove redundant test in Transforms/LoopVectorize/lifetime.ll

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 30 03:51:42 PDT 2021


david-arm created this revision.
david-arm added reviewers: sdesmalen, echristo, fhahn, kmclaughlin.
david-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107150

Files:
  llvm/test/Transforms/LoopVectorize/lifetime.ll


Index: llvm/test/Transforms/LoopVectorize/lifetime.ll
===================================================================
--- llvm/test/Transforms/LoopVectorize/lifetime.ll
+++ llvm/test/Transforms/LoopVectorize/lifetime.ll
@@ -63,34 +63,6 @@
   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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107150.363024.patch
Type: text/x-patch
Size: 1338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210730/79e5b859/attachment.bin>


More information about the llvm-commits mailing list