1 ; RUN: opt %loadPolly -polly-print-scops -disable-output < %s -stats 2>&1 | FileCheck %s --check-prefix=RTA
2 ; RUN: opt %loadPolly -polly-print-scops -polly-use-runtime-alias-checks=false -disable-output < %s -stats 2>&1 | FileCheck %s --check-prefix=NORTA
5 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
7 define void @f(ptr nocapture %ptrs, i64 %p0, i64 %p1, i64 %p2) nounwind {
9 %0 = getelementptr inbounds ptr, ptr %ptrs, i64 %p0 ; <ptr> [#uses=1]
10 %1 = load ptr, ptr %0, align 8 ; <ptr> [#uses=1]
11 %2 = getelementptr inbounds ptr, ptr %ptrs, i64 %p1 ; <ptr> [#uses=1]
12 %3 = load ptr, ptr %2, align 8 ; <ptr> [#uses=1]
13 %4 = getelementptr inbounds ptr, ptr %ptrs, i64 %p2 ; <ptr> [#uses=1]
14 %5 = load ptr, ptr %4, align 8 ; <ptr> [#uses=1]
17 bb: ; preds = %bb, %bb.nph
18 %i.03 = phi i64 [ 0, %bb.nph ], [ %tmp, %bb ] ; <i64> [#uses=3]
19 %scevgep = getelementptr i32, ptr %3, i64 %i.03 ; <ptr> [#uses=1]
20 %scevgep4 = getelementptr i32, ptr %5, i64 %i.03 ; <ptr> [#uses=1]
21 %tmp = add i64 %i.03, 1 ; <i64> [#uses=3]
22 %scevgep5 = getelementptr i32, ptr %1, i64 %tmp ; <ptr> [#uses=1]
23 %6 = load i32, ptr %scevgep, align 4 ; <i32> [#uses=1]
24 %7 = load i32, ptr %scevgep4, align 4 ; <i32> [#uses=1]
25 %8 = add nsw i32 %7, %6 ; <i32> [#uses=1]
26 store i32 %8, ptr %scevgep5, align 4
27 %exitcond = icmp eq i64 %tmp, 64 ; <i1> [#uses=1]
28 br i1 %exitcond, label %return, label %bb
34 ; RTA: 1 polly-detect - Number of scops
35 ; NORTA: 1 polly-detect - Number of rejected regions: Base address aliasing