1 ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-use-llvm-names=0 -polly-print-scops -disable-output < %s | FileCheck %s -match-full-lines -check-prefix=IDX
2 ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-use-llvm-names=1 -polly-print-scops -disable-output < %s | FileCheck %s -match-full-lines -check-prefix=BB
3 ; RUN: opt %loadPolly -polly-stmt-granularity=scalar-indep -polly-use-llvm-names=0 -polly-print-scops -disable-output < %s | FileCheck %s -match-full-lines -check-prefix=IDX
4 ; RUN: opt %loadPolly -polly-stmt-granularity=scalar-indep -polly-use-llvm-names=1 -polly-print-scops -disable-output < %s | FileCheck %s -match-full-lines -check-prefix=BB
6 ; Check that the statement has the same name, regardless of how the
7 ; basic block is split into multiple statements.
8 ; Note that %unrelatedA and %unrelatedB can be put into separate
9 ; statements, but are removed because those have no side-effects.
11 ; for (int j = 0; j < n; j += 1) {
13 ; double unrelatedA = 21.0 + 21.0;
15 ; double unrelatedB = 21.0 + 21.0;
18 define void @func(i32 %n, ptr noalias nonnull %A) {
23 %j = phi i32 [0, %entry], [%j.inc, %inc]
24 %j.cmp = icmp slt i32 %j, %n
25 br i1 %j.cmp, label %body, label %exit
28 %unrelatedA = fadd double 21.0, 21.0
29 store double 0.0, ptr %A
30 %unrelatedB = fadd double 21.0, 21.0
34 %j.inc = add nuw nsw i32 %j, 1