; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 6 ; RUN: opt < %s -disable-output "-passes=print" 2>&1 \ ; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-ALL ; RUN: opt < %s -disable-output "-passes=print" -da-enable-dependence-test=exact-siv 2>&1 \ ; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-EXACT-SIV ; for (i = 0; i < (1 << 63) + 10; i++) { ; if (i < 4) { ; A[i - 20] = 0; ; A[i - 19] = 1; ; } ; } ; ; There is a dependency between the two stores. ; define void @exact_siv_large_btc(ptr %A) { ; CHECK-ALL-LABEL: 'exact_siv_large_btc' ; CHECK-ALL-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 0, ptr %gep.0, align 1 ; CHECK-ALL-NEXT: da analyze - none! ; CHECK-ALL-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1, ptr %gep.1, align 1 ; CHECK-ALL-NEXT: da analyze - output [-1]! ; CHECK-ALL-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1, ptr %gep.1, align 1 ; CHECK-ALL-NEXT: da analyze - none! ; ; CHECK-EXACT-SIV-LABEL: 'exact_siv_large_btc' ; CHECK-EXACT-SIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 0, ptr %gep.0, align 1 ; CHECK-EXACT-SIV-NEXT: da analyze - output [*]! ; CHECK-EXACT-SIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1, ptr %gep.1, align 1 ; CHECK-EXACT-SIV-NEXT: da analyze - output [*|<]! ; CHECK-EXACT-SIV-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1, ptr %gep.1, align 1 ; CHECK-EXACT-SIV-NEXT: da analyze - output [*]! ; entry: br label %loop.header loop.header: %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ] %cond = icmp sle i64 %i, 4 br i1 %cond, label %if.then, label %loop.latch if.then: %offset.0 = sub i64 %i, 20 %offset.1 = sub i64 %i, 19 %gep.0 = getelementptr i8, ptr %A, i64 %offset.0 %gep.1 = getelementptr i8, ptr %A, i64 %offset.1 store i8 0, ptr %gep.0 store i8 1, ptr %gep.1 br label %loop.latch loop.latch: %i.inc = add i64 %i, 1 %ec = icmp eq i64 %i.inc, 9223372036854775818 br i1 %ec, label %exit, label %loop.header exit: ret void } ;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line: ; CHECK: {{.*}}