brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · b71a092 Raw
49 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<scops>' -polly-print-scops -disable-output -polly-invariant-load-hoisting < %s 2>&1 | FileCheck %s2 3; Verify that arrays with different element types are not coalesced.4 5; CHECK:      Statements {6; CHECK-NEXT: 	Stmt_body17; CHECK-NEXT:         Domain :=8; CHECK-NEXT:             { Stmt_body1[i0] : 0 <= i0 <= 1022 };9; CHECK-NEXT:         Schedule :=10; CHECK-NEXT:             { Stmt_body1[i0] -> [i0, 0] };11; CHECK-NEXT:         MustWriteAccess :=	[Reduction Type: NONE] [Scalar: 0]12; CHECK-NEXT:             { Stmt_body1[i0] -> MemRef_baseB[0] };13; CHECK-NEXT: 	Stmt_body214; CHECK-NEXT:         Domain :=15; CHECK-NEXT:             { Stmt_body2[i0] : 0 <= i0 <= 1022 };16; CHECK-NEXT:         Schedule :=17; CHECK-NEXT:             { Stmt_body2[i0] -> [i0, 1] };18; CHECK-NEXT:         MustWriteAccess :=	[Reduction Type: NONE] [Scalar: 0]19; CHECK-NEXT:             { Stmt_body2[i0] -> MemRef_baseA[0] };20; CHECK-NEXT: }21 22define void @foo(ptr %A, i64 %n, i64 %m) {23start:24  br label %loop25 26loop:27  %indvar = phi i64 [0, %start], [%indvar.next, %latch]28  %indvar.next = add nsw i64 %indvar, 129  %icmp = icmp slt i64 %indvar.next, 102430  br i1 %icmp, label %body1, label %exit31 32body1:33  %baseB = load ptr, ptr %A34  store float 42.0, ptr %baseB35  br label %body236 37body2:38  %baseA = load ptr, ptr %A39  store i64 42, ptr %baseA40  br label %latch41 42latch:43  br label %loop44 45exit:46  ret void47 48}49