Skip to content

Commit 24077c7

Browse files
committed
!fixup address comments and rebase
1 parent c8a220c commit 24077c7

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

llvm/test/Transforms/LoopVectorize/preserve-dbg-loc-and-loop-metadata.ll

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
; RUN: opt < %s -passes=loop-vectorize -S 2>&1 | FileCheck %s
2-
; RUN: opt < %s -passes=debugify,loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -S | FileCheck %s -check-prefix DEBUGLOC
3-
; RUN: opt < %s -passes=debugify,loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -S --try-experimental-debuginfo-iterators | FileCheck %s -check-prefix DEBUGLOC
1+
; RUN: opt < %s -passes=loop-vectorize -force-vector-width=4 -S 2>&1 | FileCheck %s
2+
; RUN: opt < %s -passes=debugify,loop-vectorize -force-vector-width=4 -S | FileCheck %s -check-prefix DEBUGLOC
3+
; RUN: opt < %s -passes=debugify,loop-vectorize -force-vector-width=4 -S --try-experimental-debuginfo-iterators | FileCheck %s -check-prefix DEBUGLOC
44
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
55

66
; This test makes sure we don't duplicate the loop vectorizer's metadata
@@ -54,9 +54,8 @@ exit:
5454
ret void
5555
}
5656

57-
define void @widen_intrinsic_dbg(i64 %n, ptr noalias %y, ptr noalias %x) nounwind uwtable {
57+
define void @widen_intrinsic_dbg(i64 %n, ptr %y, ptr %x) nounwind uwtable {
5858
; DEBUGLOC-LABEL: define void @widen_intrinsic_dbg(
59-
;
6059
; DEBUGLOC: vector.body:
6160
; DEBUGLOC: = call <4 x float> @llvm.sqrt.v4f32(<4 x float> %{{.+}}), !dbg ![[INTRINSIC_LOC:[0-9]+]]
6261
; DEBUGLOC: for.body:

llvm/test/Transforms/LoopVectorize/preserve-dbg-loc-reduction-inloop.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
; RUN: opt < %s -passes=debugify,loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -prefer-inloop-reductions -S | FileCheck %s -check-prefix DEBUGLOC
1+
; RUN: opt < %s -passes=debugify,loop-vectorize -force-vector-width=4 -prefer-inloop-reductions -S | FileCheck %s -check-prefix DEBUGLOC
22

33
; Testing the debug locations of the generated vector intstruction are same as
44
; their scalar counterpart.
55

6-
; DEBUGLOC-LABEL: define i32 @reduction_sum(
76
define i32 @reduction_sum(ptr %A, ptr %B) {
7+
; DEBUGLOC-LABEL: define i32 @reduction_sum(
88
; DEBUGLOC: vector.body:
99
; DEBUGLOC: %[[VecLoad:.*]] = load <4 x i32>, ptr %2, align 4, !dbg ![[LoadLoc0:[0-9]+]]
1010
; DEBUGLOC: %[[VecRed:.*]] = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %wide.load), !dbg ![[RedLoc0:[0-9]+]]

0 commit comments

Comments
 (0)