1 ; RUN: opt %loadPolly -polly-print-optree -disable-output < %s | FileCheck %s -match-full-lines
3 ; Cannot rematerialize %val from B[0] at bodyC because B[0] has been
4 ; overwritten in bodyB.
6 ; for (int j = 0; j < n; j += 1) {
17 define void @func(i32 %n, ptr noalias nonnull %A, ptr noalias nonnull %B) {
22 %j = phi i32 [0, %entry], [%j.inc, %inc]
23 %j.cmp = icmp slt i32 %j, %n
24 br i1 %j.cmp, label %bodyA, label %exit
27 %B_idx = getelementptr inbounds double, ptr %B, i32 %j
28 %val = load double, ptr %B_idx
32 store double 0.0, ptr %B_idx
36 %A_idx = getelementptr inbounds double, ptr %A, i32 %j
37 store double %val, ptr %A_idx
41 %j.inc = add nuw nsw i32 %j, 1
52 ; CHECK: ForwardOpTree executed, but did not modify anything