1 ; RUN: opt %loadNPMPolly '-passes=print<polly-optree>' -disable-output < %s | FileCheck %s -match-full-lines
3 ; Ensure we do not move instructions from region statements in case the
4 ; instruction to move loads from an array which is also written to from
5 ; within the region. This is necessary as complex region statements may prevent
6 ; us from detecting possible memory conflicts.
8 ; for (int j = 0; j < n; j += 1) {
20 define void @func(i32 %n, ptr noalias nonnull %A) {
25 %j = phi i32 [0, %entry], [%j.inc, %inc]
26 %j.cmp = icmp slt i32 %j, %n
27 br i1 %j.cmp, label %bodyA, label %exit
30 %val = load double, ptr %A
31 %cond = fcmp oeq double 21.0, 21.0
32 br i1 %cond, label %bodyA_true, label %bodyB
35 store double 42.0, ptr %A
39 store double %val, ptr %A
46 %j.inc = add nuw nsw i32 %j, 1
56 ; CHECK: ForwardOpTree executed, but did not modify anything