brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 9ac6643 Raw
38 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<scops>' -polly-print-detect -polly-print-scops -disable-output < %s 2>&1 | FileCheck %s2;3; Check that we do not build a SCoP and do not crash.4;5; CHECK-NOT: Statements6;7target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"8 9; Function Attrs: nounwind uwtable10define void @int_upsample(ptr %A) {11entry:12  %0 = load i8, ptr undef, align 113  %conv7 = zext i8 %0 to i3214  br label %while.body.preheader15 16while.body.preheader:                             ; preds = %entry17  br label %while.body18 19while.body:                                       ; preds = %if.end, %while.body.preheader20  %outrow.036 = phi i32 [ %add23, %if.end ], [ 0, %while.body.preheader ]21  br i1 true, label %if.end, label %while.body1622 23while.body16:                                     ; preds = %while.body16, %while.body24  br label %while.body16.split25 26while.body16.split:27  br label %while.body1628 29if.end:                                           ; preds = %while.body30  store i32 0, ptr %A31  %add23 = add nuw nsw i32 %outrow.036, 132  %cmp = icmp slt i32 %add23, 033  br i1 %cmp, label %while.body, label %while.end2434 35while.end24:                                      ; preds = %if.end36  ret void37}38