Skip to content

Commit 334119e

Browse files
committed
[LAA] Add some test comments/TODOs
1 parent 8dbad21 commit 334119e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

llvm/test/Analysis/LoopAccessAnalysis/depend_diff_types.ll

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ exit:
263263
ret void
264264
}
265265

266+
; The type-size of the source is different from that of the sink,
267+
; and the dependence distance is 10.
268+
; TODO: Relax the HasSameSize check; the strided accesses are
269+
; independent, as determined by both the source size and the sink size.
270+
; This test should report no dependencies.
266271
define void @different_type_sizes_strided_accesses_independent(ptr %dst) {
267272
; CHECK-LABEL: 'different_type_sizes_strided_accesses_independent'
268273
; CHECK-NEXT: loop:
@@ -299,6 +304,10 @@ exit:
299304
ret void
300305
}
301306

307+
; Variant of the above, where the source size forbids strided access
308+
; independence.
309+
; TODO: Relax the HasSameSize check; this test should report a backward
310+
; loop-carried dependence.
302311
define void @different_type_sizes_strided_accesses_dependent(ptr %dst) {
303312
; CHECK-LABEL: 'different_type_sizes_strided_accesses_dependent'
304313
; CHECK-NEXT: loop:
@@ -335,6 +344,11 @@ exit:
335344
ret void
336345
}
337346

347+
; Source type-size differs from that of the sink, but when
348+
; determining backward dependence, only the source size
349+
; is relevant.
350+
; TODO: Relax the HasSameSize check; this test should report
351+
; BackwardVectorizable.
338352
define void @different_type_sizes_source_size_backwardvectorizible(ptr %dst) {
339353
; CHECK-LABEL: 'different_type_sizes_source_size_backwardvectorizible'
340354
; CHECK-NEXT: loop:
@@ -371,6 +385,9 @@ exit:
371385
ret void
372386
}
373387

388+
; Source type-size differs from that of the sink, and when
389+
; determining forward dependence, the source size can
390+
; prevent forwarding.
374391
define void @different_type_sizes_forward(ptr %dst) {
375392
; CHECK-LABEL: 'different_type_sizes_forward'
376393
; CHECK-NEXT: loop:
@@ -406,6 +423,10 @@ exit:
406423
ret void
407424
}
408425

426+
; Same as the above, but here, the store size should not prevent
427+
; ld->st forwarding.
428+
; TODO: Relax the HasSameSize check; this test should report a
429+
; forward dependence.
409430
define void @different_type_sizes_store_size_cannot_prevent_forwarding(ptr %A, ptr noalias %B) {
410431
; CHECK-LABEL: 'different_type_sizes_store_size_cannot_prevent_forwarding'
411432
; CHECK-NEXT: loop:
@@ -443,6 +464,8 @@ exit:
443464
ret void
444465
}
445466

467+
; Same as the above, but here, the load size prevents
468+
; ld->st forwarding.
446469
define void @different_type_sizes_load_size_prevents_forwarding(ptr %A, ptr noalias %B) {
447470
; CHECK-LABEL: 'different_type_sizes_load_size_prevents_forwarding'
448471
; CHECK-NEXT: loop:

0 commit comments

Comments
 (0)