Clang] Fix expansion of response files in -Wp after integrated-cc1 change
[llvm-project.git] / polly / test / Simplify / nocoalesce_differentvalues.ll
blob20ea14e90b1d705b9ee3db47b830fa47b1ec5087
1 ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-import-jscop -polly-import-jscop-postfix=transformed -polly-simplify -analyze < %s | FileCheck -match-full-lines %s
3 ; Do not combine stores that write different values.
5 ; for (int j = 0; j < n; j += 1) {
6 ;   A[0] = 21.0;
7 ;   A[0] = 42.0;
8 ; }
10 define void @nocoalesce_differentvalues(i32 %n, double* noalias nonnull %A) {
11 entry:
12   br label %for
14 for:
15   %j = phi i32 [0, %entry], [%j.inc, %inc]
16   %j.cmp = icmp slt i32 %j, %n
17   br i1 %j.cmp, label %body, label %exit
19     body:
20       store double 21.0, double* %A
21       store double 42.0, double* %A
22       br label %inc
24 inc:
25   %j.inc = add nuw nsw i32 %j, 1
26   br label %for
28 exit:
29   br label %return
31 return:
32   ret void
36 ; CHECK: Statistics {
37 ; CHECK:     Overwrites removed: 0
38 ; CHECK:     Partial writes coalesced: 0
39 ; CHECK: }
41 ; CHECK: SCoP could not be simplified