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 %a, ptr nocapture %b) nounwind {
9 %0 = tail call i32 (...) @rnd() nounwind ; <i32> [#uses=1]
10 %1 = icmp eq i32 %0, 0 ; <i1> [#uses=1]
11 %sel.b = getelementptr inbounds i32, ptr %b, i64 4
12 %iftmp.0.0 = select i1 %1, ptr %sel.b, ptr %a ; <ptr> [#uses=2]
15 bb3: ; preds = %bb3, %bb.nph
16 %i.06 = phi i64 [ 0, %bb.nph ], [ %tmp, %bb3 ] ; <i64> [#uses=3]
17 %scevgep = getelementptr i32, ptr %a, i64 %i.06 ; <ptr> [#uses=1]
18 %scevgep7 = getelementptr i32, ptr %iftmp.0.0, i64 %i.06 ; <ptr> [#uses=1]
19 %tmp = add i64 %i.06, 1 ; <i64> [#uses=3]
20 %scevgep8 = getelementptr i32, ptr %iftmp.0.0, i64 %tmp ; <ptr> [#uses=1]
21 %2 = load i32, ptr %scevgep, align 4 ; <i32> [#uses=1]
22 %3 = load i32, ptr %scevgep8, align 4 ; <i32> [#uses=1]
23 %4 = shl i32 %3, 1 ; <i32> [#uses=1]
24 %5 = add nsw i32 %4, %2 ; <i32> [#uses=1]
25 store i32 %5, ptr %scevgep7, align 4
26 %exitcond = icmp eq i64 %tmp, 64 ; <i1> [#uses=1]
27 br i1 %exitcond, label %return, label %bb3
29 return: ; preds = %bb3
36 ; RTA: 1 polly-detect - Number of scops
37 ; NORTA: 1 polly-detect - Number of rejected regions: Base address aliasing