1 ; RUN: opt %loadPolly -polly-print-optree -disable-output < %s | FileCheck %s -match-full-lines
3 ; Do not forward instructions with side-effects (here: function call).
5 ; for (int j = 0; j < n; j += 1) {
13 declare double @f(ptr %A) #1
15 define void @func(i32 %n, ptr noalias nonnull %A) {
20 %j = phi i32 [0, %entry], [%j.inc, %inc]
21 %j.cmp = icmp slt i32 %j, %n
22 br i1 %j.cmp, label %bodyA, label %exit
25 %val = call double (ptr) @f(ptr %A)
29 store double %val, ptr %A
33 %j.inc = add nuw nsw i32 %j, 1
43 attributes #1 = { nounwind readnone }
46 ; CHECK: ForwardOpTree executed, but did not modify anything