brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.5 KiB · b5172ba Raw
56 lines · plain
1; RUN: opt %loadNPMPolly -S '-passes=polly<no-default-opts>' -verify-loop-info < %s | FileCheck %s2;3; Check that we do not crash as described here: http://llvm.org/bugs/show_bug.cgi?id=211674;5; CHECK: polly.split_new_and_old6;7target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"8 9; Function Attrs: nounwind uwtable10define void @kernel_fdtd_apml(i32 %cxm, i32 %cym, ptr %Bza, ptr %Hz, ptr %czp) #0 {11entry:12  br i1 false, label %for.cond4.preheader, label %for.end45113 14for.cond4.preheader:                              ; preds = %for.inc449, %entry15  %iz.08 = phi i32 [ undef, %for.inc449 ], [ 0, %entry ]16  %cmp55 = icmp sgt i32 %cym, 017  br i1 %cmp55, label %for.cond7.preheader, label %for.inc44918 19for.cond7.preheader:                              ; preds = %for.end, %for.cond4.preheader20  %iy.06 = phi i32 [ %inc447, %for.end ], [ 0, %for.cond4.preheader ]21  %cmp81 = icmp sgt i32 %cxm, 022  br i1 %cmp81, label %for.body9, label %for.end23 24for.body9:                                        ; preds = %for.body9, %for.cond7.preheader25  %ix.02 = phi i32 [ %inc, %for.body9 ], [ 0, %for.cond7.preheader ]26  %idxprom74 = sext i32 %iz.08 to i6427  %arrayidx75 = getelementptr inbounds double, ptr %czp, i64 %idxprom7428  %0 = load double, ptr %arrayidx75, align 829  %idxprom102 = sext i32 %iz.08 to i6430  %arrayidx105 = getelementptr inbounds [65 x [65 x double]], ptr %Hz, i64 %idxprom102, i64 0, i64 031  store double undef, ptr %arrayidx105, align 832  %inc = add nsw i32 %ix.02, 133  br i1 false, label %for.body9, label %for.end34 35for.end:                                          ; preds = %for.body9, %for.cond7.preheader36  %idxprom209 = sext i32 %cxm to i6437  %idxprom211 = sext i32 %iz.08 to i6438  %arrayidx214 = getelementptr inbounds [65 x [65 x double]], ptr %Hz, i64 %idxprom211, i64 0, i64 %idxprom20939  store double undef, ptr %arrayidx214, align 840  %idxprom430 = sext i32 %cxm to i6441  %idxprom431 = sext i32 %cym to i6442  %idxprom432 = sext i32 %iz.08 to i6443  %arrayidx435 = getelementptr inbounds [65 x [65 x double]], ptr %Hz, i64 %idxprom432, i64 %idxprom431, i64 %idxprom43044  store double undef, ptr %arrayidx435, align 845  store double undef, ptr %Bza, align 846  %inc447 = add nsw i32 %iy.06, 147  %cmp5 = icmp slt i32 %inc447, %cym48  br i1 %cmp5, label %for.cond7.preheader, label %for.inc44949 50for.inc449:                                       ; preds = %for.end, %for.cond4.preheader51  br i1 undef, label %for.cond4.preheader, label %for.end45152 53for.end451:                                       ; preds = %for.inc449, %entry54  ret void55}56