41 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<scops>' -polly-print-detect -polly-print-scops -disable-output < %s 2>&1 | FileCheck %s2;3; Verify we do not create a SCoP in the presence of infinite loops.4;5; CHECK-NOT: Statements6;7target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n8:16:32-S64"8 9define void @foo(ptr noalias nocapture readonly %xxx, ptr noalias nocapture readonly %yyy, ptr nocapture readonly %zzz, i32 %conv6) {10while.body.us.preheader:11 %a2 = load ptr, ptr %zzz, align 412 %sub = add nsw i32 %conv6, -113 br label %while.body.us14 15while.body.us: ; preds = %while.body.us.preheader, %if.then.us16 %uuu = phi i32 [ %www, %if.then.us ], [ 0, %while.body.us.preheader ]17 %a13 = load i32, ptr %yyy, align 818 %vvv = icmp sgt i32 %a13, 019 br i1 %vvv, label %while.body.13.us58.preheader, label %if.then.us20 21while.body.13.us58.preheader: ; preds = %while.body.us22 br label %while.body.13.us5823 24if.then.us: ; preds = %while.body.us25 %add.us = add nuw nsw i32 %uuu, 126 tail call void @goo(ptr %a2, i32 %uuu, ptr %a2, i32 %add.us, i32 %sub, i32 %a13) #327 %www = add nuw nsw i32 %uuu, %conv628 %a14 = load i32, ptr %xxx, align 429 %cmp.us = icmp slt i32 %www, %a1430 br i1 %cmp.us, label %while.body.us, label %while.end.21.loopexit14531 32while.body.13.us58:33 br label %while.body.13.us5834 35while.end.21.loopexit145:36 ret void37}38 39declare void @goo(ptr, i32, ptr, i32, i32, i32) #140 41