Skip to content

Commit 1e95541

Browse files
committed
Change to RemarksAnalysis
1 parent 31f9942 commit 1e95541

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

llvm/lib/Transforms/Scalar/LoopInterchange.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,9 +1766,9 @@ PreservedAnalyses LoopInterchangePass::run(LoopNest &LN,
17661766
}
17671767

17681768
ORE.emit([&]() {
1769-
return OptimizationRemark(DEBUG_TYPE, "Dependence",
1770-
LN.getOutermostLoop().getStartLoc(),
1771-
LN.getOutermostLoop().getHeader())
1769+
return OptimizationRemarkAnalysis(DEBUG_TYPE, "Dependence",
1770+
LN.getOutermostLoop().getStartLoc(),
1771+
LN.getOutermostLoop().getHeader())
17721772
<< "Computed dependence info, invoking the transform.";
17731773
});
17741774

llvm/test/Transforms/LoopInterchange/loop-interchange-optimization-remarks.ll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ for.end19:
5858
ret void
5959
}
6060

61-
; CHECK: --- !Passed
61+
; CHECK: --- !Analysis
6262
; CHECK-NEXT: Pass: loop-interchange
6363
; CHECK-NEXT: Name: Dependence
6464
; CHECK-NEXT: Function: test01
@@ -74,7 +74,7 @@ for.end19:
7474
; CHECK-NEXT: - String: Cannot interchange loops due to dependences.
7575
; CHECK-NEXT: ...
7676

77-
; DELIN: --- !Passed
77+
; DELIN: --- !Analysis
7878
; DELIN-NEXT: Pass: loop-interchange
7979
; DELIN-NEXT: Name: Dependence
8080
; DELIN-NEXT: Function: test01
@@ -134,7 +134,7 @@ define void @test02(i32 %k, i32 %N) {
134134
ret void
135135
}
136136

137-
; CHECK: --- !Passed
137+
; CHECK: --- !Analysis
138138
; CHECK-NEXT: Pass: loop-interchange
139139
; CHECK-NEXT: Name: Dependence
140140
; CHECK-NEXT: Function: test02
@@ -150,7 +150,7 @@ define void @test02(i32 %k, i32 %N) {
150150
; CHECK-NEXT: - String: Cannot interchange loops due to dependences.
151151
; CHECK-NEXT: ...
152152

153-
; DELIN: --- !Passed
153+
; DELIN: --- !Analysis
154154
; DELIN-NEXT: Pass: loop-interchange
155155
; DELIN-NEXT: Name: Dependence
156156
; DELIN-NEXT: Function: test02
@@ -206,7 +206,7 @@ for.body4: ; preds = %for.body4, %for.con
206206
br i1 %exitcond, label %for.body4, label %for.cond.loopexit
207207
}
208208

209-
; CHECK: --- !Passed
209+
; CHECK: --- !Analysis
210210
; CHECK-NEXT: Pass: loop-interchange
211211
; CHECK-NEXT: Name: Dependence
212212
; CHECK-NEXT: Function: test03
@@ -222,7 +222,7 @@ for.body4: ; preds = %for.body4, %for.con
222222
; CHECK-NEXT: - String: Loop interchanged with enclosing loop.
223223
; CHECK-NEXT: ...
224224

225-
; DELIN: --- !Passed
225+
; DELIN: --- !Analysis
226226
; DELIN-NEXT: Pass: loop-interchange
227227
; DELIN-NEXT: Name: Dependence
228228
; DELIN-NEXT: Function: test03

llvm/test/Transforms/LoopInterchange/pr43326-ideal-access-pattern.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
; }
1515
; }
1616

17-
; REMARKS: --- !Passed
17+
; REMARKS: --- !Analysis
1818
; REMARKS-NEXT: Pass: loop-interchange
1919
; REMARKS-NEXT: Name: Dependence
2020
; REMARKS-NEXT: Function: pr43326-triply-nested

llvm/test/Transforms/LoopInterchange/pr43326.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@d = global i32 0
99
@e = global [1 x [1 x i32]] zeroinitializer
1010

11-
; REMARKS: --- !Passed
11+
; REMARKS: --- !Analysis
1212
; REMARKS-NEXT: Pass: loop-interchange
1313
; REMARKS-NEXT: Name: Dependence
1414
; REMARKS-NEXT: Function: pr43326

llvm/test/Transforms/LoopInterchange/pr48212.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; RUN: -verify-dom-info -verify-loop-info -verify-loop-lcssa 2>&1
33
; RUN: FileCheck --input-file=%t --check-prefix=REMARKS %s
44

5-
; REMARKS: --- !Passed
5+
; REMARKS: --- !Analysis
66
; REMARKS-NEXT: Pass: loop-interchange
77
; REMARKS-NEXT: Name: Dependence
88
; REMARKS-NEXT: Function: pr48212

llvm/test/Transforms/LoopInterchange/reductions-across-inner-and-outer-loop.ll

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
77

8-
; REMARKS: --- !Passed
8+
; REMARKS: --- !Analysis
99
; REMARKS-NEXT: Pass: loop-interchange
1010
; REMARKS-NEXT: Name: Dependence
1111
; REMARKS-NEXT: Function: test1
@@ -85,7 +85,7 @@ for1.loopexit: ; preds = %for1.inc
8585

8686
; In this test case, the inner reduction PHI %inner does not involve the outer
8787
; reduction PHI %sum.outer, do not interchange.
88-
; REMARKS: --- !Passed
88+
; REMARKS: --- !Analysis
8989
; REMARKS-NEXT: Pass: loop-interchange
9090
; REMARKS-NEXT: Name: Dependence
9191
; REMARKS-NEXT: Function: test2
@@ -130,7 +130,7 @@ for1.loopexit: ; preds = %for1.inc
130130

131131
; Check that we do not interchange if there is an additional instruction
132132
; between the outer and inner reduction PHIs.
133-
; REMARKS: --- !Passed
133+
; REMARKS: --- !Analysis
134134
; REMARKS-NEXT: Pass: loop-interchange
135135
; REMARKS-NEXT: Name: Dependence
136136
; REMARKS-NEXT: Function: test3
@@ -175,7 +175,7 @@ for1.loopexit: ; preds = %for1.inc
175175
}
176176

177177
; Check that we do not interchange if reduction is stored in an invariant address inside inner loop
178-
; REMARKS: --- !Passed
178+
; REMARKS: --- !Analysis
179179
; REMARKS-NEXT: Pass: loop-interchange
180180
; REMARKS-NEXT: Name: Dependence
181181
; REMARKS-NEXT: Function: test4
@@ -222,7 +222,7 @@ for1.loopexit: ; preds = %for1.inc
222222

223223
; Check that we do not interchange or crash if the PHI in the outer loop gets a
224224
; constant from the inner loop.
225-
; REMARKS: --- !Passed
225+
; REMARKS: --- !Analysis
226226
; REMARKS-NEXT: Pass: loop-interchange
227227
; REMARKS-NEXT: Name: Dependence
228228
; REMARKS-NEXT: Function: test_constant_inner_loop_res
@@ -269,7 +269,7 @@ for1.loopexit: ; preds = %for1.inc
269269

270270
; Floating point reductions are interchanged if all the fp instructions
271271
; involved allow reassociation.
272-
; REMARKS: --- !Passed
272+
; REMARKS: --- !Analysis
273273
; REMARKS-NEXT: Pass: loop-interchange
274274
; REMARKS-NEXT: Name: Dependence
275275
; REMARKS-NEXT: Function: test5
@@ -317,7 +317,7 @@ for.exit: ; preds = %outer.inc
317317

318318
; Floating point reductions are not interchanged if not all the fp instructions
319319
; involved allow reassociation.
320-
; REMARKS: --- !Passed
320+
; REMARKS: --- !Analysis
321321
; REMARKS-NEXT: Pass: loop-interchange
322322
; REMARKS-NEXT: Name: Dependence
323323
; REMARKS-NEXT: Function: test6

0 commit comments

Comments
 (0)