26 lines · plain
1; RUN: opt %loadNPMPolly -polly-parallel -polly-parallel-force '-passes=polly<no-default-opts>' -S -verify-dom-info < %s | FileCheck %s -check-prefix=IR2 3; IR: @foo_polly_subfn4target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"5 6define void @foo(i32 %sendcount, ptr %recvbuf) {7entry:8 br label %sw.bb39 10sw.bb3:11 %cmp75 = icmp sgt i32 %sendcount, 012 br i1 %cmp75, label %for.body, label %end13 14for.body:15 %i.16 = phi i32 [ %inc04, %for.body ], [ 0, %sw.bb3 ]16 %idxprom11 = sext i32 %i.16 to i6417 %arrayidx12 = getelementptr inbounds double, ptr %recvbuf, i64 %idxprom1118 store double 1.0, ptr %arrayidx12, align 819 %inc04 = add nsw i32 %i.16, 120 %cmp7 = icmp slt i32 %inc04, %sendcount21 br i1 %cmp7, label %for.body, label %end22 23end:24 ret void25}26