[ForwardOpTree] Allow out-of-quota in examination part of forwardTree.
[polly-mirror.git] / test / Simplify / nocoalesce_elementmismatch.ll
blob6eeeccbf95991233302a54c69da594b3a242ce09
1 ; RUN: opt %loadPolly -polly-import-jscop -polly-import-jscop-postfix=transformed -polly-simplify -analyze < %s | FileCheck -match-full-lines %s
3 ; Do not combine stores that do not write to different elements in the
4 ; same instance.
6 ; for (int j = 0; j < n; j += 1) {
7 ;   A[0] = 21.0;
8 ;   A[0] = 42.0;
9 ; }
11 define void @nocoalesce_elementmismatch(i32 %n, double* noalias nonnull %A) {
12 entry:
13   br label %for
15 for:
16   %j = phi i32 [0, %entry], [%j.inc, %inc]
17   %j.cmp = icmp slt i32 %j, %n
18   br i1 %j.cmp, label %body, label %exit
20     body:
21       %A_0 = getelementptr inbounds double, double* %A, i32 0
22       %A_1 = getelementptr inbounds double, double* %A, i32 1
23       store double 42.0, double* %A_0
24       store double 42.0, double* %A_1
25       br label %inc
27 inc:
28   %j.inc = add nuw nsw i32 %j, 1
29   br label %for
31 exit:
32   br label %return
34 return:
35   ret void
39 ; CHECK: SCoP could not be simplified