1 ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s
3 ; Make sure code generation does not break in case an 'error block' is detected
4 ; outside of the scope. In this situation, we should not affect code generation.
7 ; CHECK-NEXT: ptrtoint ptr %tmp8 to i64
8 ; CHECK-NEXT: icmp sle i64
9 ; CHECK-NEXT: ptrtoint ptr %tmp8 to i64
10 ; CHECK-NEXT: icmp sge i64
12 ; CHECK-NEXT: label %polly.then, label %polly.else
14 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
16 declare void @widget()
23 br i1 undef, label %bb5, label %bb2
26 %tmp = call ptr @pluto()
37 %tmp8 = phi ptr [ %tmp, %bb6 ], [ null, %bb5 ]
41 %tmp10 = icmp eq ptr %tmp8, null
42 br i1 %tmp10, label %bb12, label %bb11
48 %tmp13 = phi ptr [ undef, %bb9 ], [ undef, %bb11 ]