brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 0a4284b Raw
44 lines · plain
1; RUN: opt %loadNPMPolly -polly-print-instructions '-passes=polly-custom<scops>' -polly-print-scops -disable-output < %s 2>&1 | FileCheck %s2;3; CHECK:    Statements {4; CHECK-NEXT: 	Stmt_Stmt5; CHECK-NEXT:       Domain :=6; CHECK-NEXT:           { Stmt_Stmt[i0] : 0 <= i0 <= 1023 };7; CHECK-NEXT:       Schedule :=8; CHECK-NEXT:           { Stmt_Stmt[i0] -> [i0] };9; CHECK-NEXT:       MustWriteAccess :=	[Reduction Type: NONE] [Scalar: 0]10; CHECK-NEXT:           { Stmt_Stmt[i0] -> MemRef_A[i0] };11; CHECK-NEXT:       Instructions {12; CHECK-NEXT:             store i32 %i.0, ptr %arrayidx, align 4, !polly_split_after !013; CHECK-NEXT:       }14; CHECK-NEXT:   }15;16; Function Attrs: noinline nounwind uwtable17define void @func(ptr %A) #0 {18entry:19  br label %for.cond20 21for.cond:                                         ; preds = %for.inc, %entry22  %i.0 = phi i32 [ 0, %entry ], [ %add, %for.inc ]23  %cmp = icmp slt i32 %i.0, 102424  br i1 %cmp, label %for.body, label %for.end25 26for.body:                                         ; preds = %for.cond27  br label %Stmt28 29Stmt:30  %idxprom = sext i32 %i.0 to i6431  %arrayidx = getelementptr inbounds i32, ptr %A, i64 %idxprom32  store i32 %i.0, ptr %arrayidx, align 4, !polly_split_after !033  br label %for.inc34 35for.inc:                                          ; preds = %Stmt36  %add = add nsw i32 %i.0, 137  br label %for.cond38 39for.end:                                          ; preds = %for.cond40  ret void41}42 43!0 = !{!"polly_split_after"}44