1 ; RUN: opt %loadPolly -polly-optree -analyze < %s | FileCheck %s -match-full-lines
3 define void @func(i32 %n, double* noalias nonnull %A, double* noalias nonnull %B) {
8 %j = phi i32 [0, %entry], [%j.inc, %inc]
9 %j.cmp = icmp slt i32 %j, %n
10 br i1 %j.cmp, label %bodyA, label %exit
13 %B_idx = getelementptr inbounds double, double* %B, i32 %j
14 %val = load double, double* %B_idx
15 %cond = icmp slt i32 %j, 1
16 br i1 %cond, label %bodyA_true, label %bodyB
19 store double 0.0, double* %B_idx
23 %A_idx = getelementptr inbounds double, double* %A, i32 %j
24 store double %val, double* %A_idx
28 %j.inc = add nuw nsw i32 %j, 1
39 ; CHECK: ForwardOpTree executed, but did not modify anything