brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 777c008 Raw
41 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<scops>' -polly-print-scops -disable-output < %s 2>&1 | FileCheck %s2 3; The SCoP contains a loop with multiple exit blocks (BBs after leaving4; the loop). The current implementation of deriving their domain derives5; only a common domain for all of the exit blocks. We disabled loops with6; multiple exit blocks until this is fixed.7; XFAIL: *8 9; CHECK: { Stmt_bb3[i0] -> [0, 0] };10; CHECK: { Stmt_bb2[] -> [1, 0] };11 12; Verify that we generate the correct schedule. In older versions of Polly,13; we generated an incorrect schedule:14;15;   { Stmt_bb3[i0] -> [1, 0]; Stmt_bb2[] -> [0, 0] }16;17target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"18 19define void @hoge() {20bb:21  br label %bb322 23bb1:                                              ; preds = %bb524  br label %bb625 26bb2:                                              ; preds = %bb327  %tmp = phi i64 [ %tmp4, %bb3 ]28  br label %bb629 30bb3:                                              ; preds = %bb5, %bb31  %tmp4 = phi i64 [ 0, %bb ], [ 0, %bb5 ]32  br i1 false, label %bb5, label %bb233 34bb5:                                              ; preds = %bb335  br i1 false, label %bb3, label %bb136 37bb6:                                              ; preds = %bb2, %bb138  %tmp2 = phi i64 [ %tmp, %bb2 ], [ undef, %bb1 ]39  ret void40}41