brintos

brintos / llvm-project-archived public Read only

0
0
Text · 5.1 KiB · dc0c551 Raw
125 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly<no-default-opts>' < %s2 3target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"4target triple = "x86_64-unknown-linux-gnu"5 6; Just make sure this test passes correctly.7 8define void @kernel_ludcmp(ptr %b, ptr %y) {9entry:10  br label %entry.split11 12entry.split:                                      ; preds = %entry13  br label %for.body14 15for.cond.30.for.cond.loopexit_crit_edge:          ; preds = %for.end.5416  br label %for.cond.loopexit17 18for.cond.loopexit:                                ; preds = %for.cond.30.preheader, %for.cond.30.for.cond.loopexit_crit_edge19  %indvars.iv.next131 = add nuw nsw i32 %indvars.iv130, 120  br i1 false, label %for.body, label %for.end.6521 22for.body:                                         ; preds = %for.cond.loopexit, %entry.split23  %indvars.iv130 = phi i32 [ 1, %entry.split ], [ %indvars.iv.next131, %for.cond.loopexit ]24  br i1 true, label %for.body.3.lr.ph, label %for.cond.30.preheader25 26for.body.3.lr.ph:                                 ; preds = %for.body27  br label %for.body.328 29for.cond.1.for.cond.30.preheader_crit_edge:       ; preds = %for.end30  br label %for.cond.30.preheader31 32for.cond.30.preheader:                            ; preds = %for.cond.1.for.cond.30.preheader_crit_edge, %for.body33  br i1 true, label %for.body.32.lr.ph, label %for.cond.loopexit34 35for.body.32.lr.ph:                                ; preds = %for.cond.30.preheader36  br label %for.body.3237 38for.body.3:                                       ; preds = %for.end, %for.body.3.lr.ph39  br i1 false, label %for.body.9.lr.ph, label %for.end40 41for.body.9.lr.ph:                                 ; preds = %for.body.342  br label %for.body.943 44for.body.9:                                       ; preds = %for.body.9, %for.body.9.lr.ph45  br i1 false, label %for.body.9, label %for.cond.7.for.end_crit_edge46 47for.cond.7.for.end_crit_edge:                     ; preds = %for.body.948  br label %for.end49 50for.end:                                          ; preds = %for.cond.7.for.end_crit_edge, %for.body.351  br i1 false, label %for.body.3, label %for.cond.1.for.cond.30.preheader_crit_edge52 53for.body.32:                                      ; preds = %for.end.54, %for.body.32.lr.ph54  %indvars.iv136 = phi i64 [ 0, %for.body.32.lr.ph ], [ %indvars.iv.next137, %for.end.54 ]55  br i1 false, label %for.end.54, label %for.body.40.lr.ph56 57for.body.40.lr.ph:                                ; preds = %for.body.3258  br label %for.body.4059 60for.body.40:                                      ; preds = %for.body.40, %for.body.40.lr.ph61  %indvars.iv.next129 = add nuw nsw i64 0, 162  %lftr.wideiv132 = trunc i64 %indvars.iv.next129 to i3263  br i1 false, label %for.body.40, label %for.cond.38.for.end.54_crit_edge64 65for.cond.38.for.end.54_crit_edge:                 ; preds = %for.body.4066  br label %for.end.5467 68for.end.54:                                       ; preds = %for.cond.38.for.end.54_crit_edge, %for.body.3269  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 170  %lftr.wideiv138 = trunc i64 %indvars.iv.next137 to i3271  br i1 false, label %for.body.32, label %for.cond.30.for.cond.loopexit_crit_edge72 73for.end.65:                                       ; preds = %for.cond.loopexit74  %tmp2 = load i64, ptr %b, align 8, !tbaa !175  store i64 %tmp2, ptr %y, align 8, !tbaa !176  br label %for.body.7077 78for.body.70:                                      ; preds = %for.end.86, %for.end.6579  %tmp4 = load double, ptr %b, align 8, !tbaa !180  br i1 true, label %for.body.75.lr.ph, label %for.end.8681 82for.body.75.lr.ph:                                ; preds = %for.body.7083  br label %for.body.7584 85for.body.75:                                      ; preds = %for.body.75, %for.body.75.lr.ph86  %w.284 = phi double [ %tmp4, %for.body.75.lr.ph ], [ %sub83, %for.body.75 ]87  %sub83 = fsub double %w.284, undef88  br i1 false, label %for.body.75, label %for.cond.73.for.end.86_crit_edge89 90for.cond.73.for.end.86_crit_edge:                 ; preds = %for.body.7591  br label %for.end.8692 93for.end.86:                                       ; preds = %for.cond.73.for.end.86_crit_edge, %for.body.7094  br i1 false, label %for.body.70, label %for.end.9195 96for.end.91:                                       ; preds = %for.end.8697  br label %for.body.9998 99for.body.99:                                      ; preds = %for.end.118, %for.end.91100  br i1 true, label %for.body.106.lr.ph, label %for.end.118101 102for.body.106.lr.ph:                               ; preds = %for.body.99103  br label %for.body.106104 105for.body.106:                                     ; preds = %for.body.106, %for.body.106.lr.ph106  br i1 undef, label %for.body.106, label %for.cond.104.for.end.118_crit_edge107 108for.cond.104.for.end.118_crit_edge:               ; preds = %for.body.106109  br label %for.end.118110 111for.end.118:                                      ; preds = %for.cond.104.for.end.118_crit_edge, %for.body.99112  br i1 undef, label %for.body.99, label %for.end.131113 114for.end.131:                                      ; preds = %for.end.118115  ret void116}117 118!llvm.ident = !{!0}119 120!0 = !{!"clang version 3.8.0 (trunk 250010) (llvm/trunk 250018)"}121!1 = !{!2, !2, i64 0}122!2 = !{!"double", !3, i64 0}123!3 = !{!"omnipotent char", !4, i64 0}124!4 = !{!"Simple C/C++ TBAA"}125