brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 76cc557 Raw
45 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; CHECK:      Stmt_body14; CHECK-NEXT:       Domain :=5; CHECK-NEXT:           { Stmt_body1[i0] : 0 <= i0 <= 1022 };6; CHECK-NEXT:       Schedule :=7; CHECK-NEXT:           { Stmt_body1[i0] -> [i0, 0] };8; CHECK-NEXT:       MustWriteAccess :=  [Reduction Type: NONE] [Scalar: 0]9; CHECK-NEXT:          { Stmt_body1[i0] -> MemRef_baseB[0] };10; CHECK-NEXT: Stmt_body211; CHECK-NEXT:       Domain :=12; CHECK-NEXT:           { Stmt_body2[i0] : 0 <= i0 <= 1022 };13; CHECK-NEXT:       Schedule :=14; CHECK-NEXT:           { Stmt_body2[i0] -> [i0, 1] };15; CHECK-NEXT:       MustWriteAccess :=  [Reduction Type: NONE] [Scalar: 0]16; CHECK-NEXT:                { Stmt_body2[i0] -> MemRef_baseB[0] };17 18define void @foo(ptr %A) {19start:20  br label %loop21 22loop:23  %indvar = phi i64 [0, %start], [%indvar.next, %latch]24  %indvar.next = add nsw i64 %indvar, 125  %icmp = icmp slt i64 %indvar.next, 102426  br i1 %icmp, label %body1, label %exit27 28body1:29  %baseA = load ptr, ptr %A30  store float 42.0, ptr %baseA31  br label %body232 33body2:34  %baseB = load ptr, ptr %A35  store float 42.0, ptr %baseB36  br label %latch37 38latch:39  br label %loop40 41exit:42  ret void43 44}45