brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · 7ab6477 Raw
69 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<detect>' -polly-print-detect -disable-output < %s 2>&1 | FileCheck %s -check-prefix=DETECT2 3; RUN: opt %loadNPMPolly '-passes=polly-custom<scops>' -polly-print-detect -polly-print-scops -disable-output < %s 2>&1 | FileCheck %s -check-prefix=SCOPS4 5; DETECT: Valid Region for Scop: if.end116 => for.inc2166; SCOPS-NOT: Statements7 8; Verify that we detect this scop, but that, due to an infeasible run-time9; check, we refuse to model it.10;11target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"12 13%struct.tnode.1.7.13.67.121.175.217.307.325.337.349.367.379.391.433.445.667.727.733.739 = type { i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr }14%struct.plist.0.6.12.66.120.174.216.306.324.336.348.366.378.390.432.444.666.726.732.738 = type { i32, ptr }15 16@vFixedEdgeRoot = external global ptr, align 817@hEdgeRoot = external global ptr, align 818 19; Function Attrs: nounwind uwtable20define void @readgeo() #0 {21entry:22  %vx = alloca i32, align 423  br label %if.end6424 25if.end64:                                         ; preds = %entry26  br label %for.body7327 28for.body73:                                       ; preds = %for.inc216, %if.end6429  %v.0101 = phi i32 [ 0, %for.inc216 ], [ 1, %if.end64 ]30  br i1 undef, label %if.then93, label %if.else31 32if.then93:                                        ; preds = %for.body7333  br label %for.inc21634 35if.else:                                          ; preds = %for.body7336  br i1 undef, label %if.then111, label %if.end11637 38if.then111:                                       ; preds = %if.else39  br label %if.end11640 41if.end116:                                        ; preds = %if.then111, %if.else42  %rippleCount.2 = phi i32 [ 1, %if.then111 ], [ undef, %if.else ]43  %rem11790 = and i32 %v.0101, 144  %cmp118 = icmp eq i32 %rem11790, 045  br i1 %cmp118, label %if.then120, label %if.else15446 47if.then120:                                       ; preds = %if.end11648  call void @tinsert()49  br label %if.end19350 51if.else154:                                       ; preds = %if.end11652  call void @tinsert()53  br label %if.end19354 55if.end193:                                        ; preds = %if.else154, %if.then12056  %0 = load i32, ptr %vx, align 457  br label %for.inc21658 59for.inc216:                                       ; preds = %if.end193, %if.then9360  %rippleCount.3 = phi i32 [ undef, %if.then93 ], [ %rippleCount.2, %if.end193 ]61  %ux.2 = phi i32 [ undef, %if.then93 ], [ %0, %if.end193 ]62  br i1 undef, label %for.body73, label %for.end21863 64for.end218:                                       ; preds = %for.inc21665  unreachable66}67 68declare void @tinsert()69