1 ; RUN: opt %loadPolly -polly-simplify -analyze < %s | FileCheck %s -match-full-lines
3 ; Don't remove store where there is another store to the same target
6 ; for (int j = 0; j < n; j += 1)
9 define void @func(i32 %n, double* noalias nonnull %A) {
14 %j = phi i32 [0, %entry], [%j.inc, %inc]
15 %j.cmp = icmp slt i32 %j, %n
16 br i1 %j.cmp, label %body, label %exit
19 %A_idx = getelementptr inbounds double, double* %A, i32 %j
20 %val = load double, double* %A_idx
21 store double 0.0, double* %A
22 store double %val, double* %A_idx
26 %j.inc = add nuw nsw i32 %j, 1
37 ; CHECK: SCoP could not be simplified