1; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s 2; 3; Verify we do not create a SCoP in the presence of infinite loops. 4; 5; CHECK-NOT: Statements 6; 7target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n8:16:32-S64" 8 9define void @foo(i32* noalias nocapture readonly %xxx, i32* noalias nocapture readonly %yyy, i8*** nocapture readonly %zzz, i32 %conv6) { 10while.body.us.preheader: 11 %a2 = load i8**, i8*** %zzz, align 4 12 %sub = add nsw i32 %conv6, -1 13 br label %while.body.us 14 15while.body.us: ; preds = %while.body.us.preheader, %if.then.us 16 %uuu = phi i32 [ %www, %if.then.us ], [ 0, %while.body.us.preheader ] 17 %a13 = load i32, i32* %yyy, align 8 18 %vvv = icmp sgt i32 %a13, 0 19 br i1 %vvv, label %while.body.13.us58.preheader, label %if.then.us 20 21while.body.13.us58.preheader: ; preds = %while.body.us 22 br label %while.body.13.us58 23 24if.then.us: ; preds = %while.body.us 25 %add.us = add nuw nsw i32 %uuu, 1 26 tail call void @goo(i8** %a2, i32 %uuu, i8** %a2, i32 %add.us, i32 %sub, i32 %a13) #3 27 %www = add nuw nsw i32 %uuu, %conv6 28 %a14 = load i32, i32* %xxx, align 4 29 %cmp.us = icmp slt i32 %www, %a14 30 br i1 %cmp.us, label %while.body.us, label %while.end.21.loopexit145 31 32while.body.13.us58: 33 br label %while.body.13.us58 34 35while.end.21.loopexit145: 36 ret void 37} 38 39declare void @goo(i8**, i32, i8**, i32, i32, i32) #1 40 41