@@ -127,9 +127,8 @@ exit:
127127; A[-3*i - 3*m - INT64_MAX] = 1;
128128; }
129129;
130- ; FIXME: DependenceAnalysis currently detects no dependency between the two
131- ; stores, but it may exist. For example, consider `m = 1`. Then,
132- ; `-3*m - INT64_MAX` is `INT64_MAX - 1`. So `-3*i - 3*m - INT64_MAX` is
130+ ; Dependency may exist between the two stores. For example, consider `m = 1`.
131+ ; Then, `-3*m - INT64_MAX` is `INT64_MAX - 1`. So `-3*i - 3*m - INT64_MAX` is
133132; effectively `-3*i + (INT64_MAX - 1)`. Thus, accesses will be as follows:
134133;
135134; memory access | i == 1 | i == max_i - 1
@@ -143,15 +142,15 @@ define void @gcdmiv_const_ovfl(ptr %A, i64 %m) {
143142; CHECK-ALL-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 0, ptr %gep.0, align 1
144143; CHECK-ALL-NEXT: da analyze - none!
145144; CHECK-ALL-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1, ptr %gep.1, align 1
146- ; CHECK-ALL-NEXT: da analyze - none !
145+ ; CHECK-ALL-NEXT: da analyze - output [*|<] !
147146; CHECK-ALL-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1, ptr %gep.1, align 1
148147; CHECK-ALL-NEXT: da analyze - none!
149148;
150149; CHECK-GCD-MIV-LABEL: 'gcdmiv_const_ovfl'
151150; CHECK-GCD-MIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 0, ptr %gep.0, align 1
152151; CHECK-GCD-MIV-NEXT: da analyze - consistent output [*]!
153152; CHECK-GCD-MIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1, ptr %gep.1, align 1
154- ; CHECK-GCD-MIV-NEXT: da analyze - none !
153+ ; CHECK-GCD-MIV-NEXT: da analyze - consistent output [*|<] !
155154; CHECK-GCD-MIV-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1, ptr %gep.1, align 1
156155; CHECK-GCD-MIV-NEXT: da analyze - consistent output [*]!
157156;
0 commit comments