1; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops \ 2; RUN: -polly-invariant-load-hoisting=true \ 3; RUN: < %s 2>&1 | FileCheck %s 4; 5; CHECK: Low complexity assumption: 6; 7target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 8 9@board = external global [421 x i8], align 16 10 11; Function Attrs: nounwind uwtable 12define fastcc void @ping_recurse(i32* nocapture %mx, i32* nocapture %mr, i32 %color) unnamed_addr { 13entry: 14 br label %land.lhs.true38.1 15 16if.end58: ; preds = %land.lhs.true38.2, %if.end54.1 17 ret void 18 19land.lhs.true38.1: ; preds = %entry 20 %arrayidx34.1 = getelementptr inbounds [421 x i8], [421 x i8]* @board, i64 0, i64 0 21 %arrayidx40.1 = getelementptr inbounds i32, i32* %mr, i64 0 22 %0 = load i32, i32* %arrayidx40.1, align 4 23 %cmp41.1 = icmp eq i32 %0, 0 24 br i1 %cmp41.1, label %land.lhs.true43.1, label %if.end54.1 25 26land.lhs.true43.1: ; preds = %land.lhs.true38.1 27 %arrayidx45.1 = getelementptr inbounds i32, i32* %mx, i64 0 28 %1 = load i32, i32* %arrayidx45.1, align 4 29 %cmp46.1 = icmp eq i32 %1, 1 30 %cmp51.1 = icmp eq i32 0, %color 31 %or.cond.1 = or i1 %cmp51.1, %cmp46.1 32 br i1 %or.cond.1, label %if.then53.1, label %if.end54.1 33 34if.then53.1: ; preds = %land.lhs.true43.1 35 tail call fastcc void @ping_recurse(i32* nonnull %mx, i32* nonnull %mr, i32 %color) 36 br label %if.end54.1 37 38if.end54.1: ; preds = %if.then53.1, %land.lhs.true43.1, %land.lhs.true38.1 39 %arrayidx34.2 = getelementptr inbounds [421 x i8], [421 x i8]* @board, i64 0, i64 0 40 %2 = load i8, i8* %arrayidx34.2, align 1 41 %cmp36.2 = icmp eq i8 %2, 3 42 br i1 %cmp36.2, label %if.end58, label %land.lhs.true38.2 43 44land.lhs.true38.2: ; preds = %if.end54.1 45 %arrayidx40.2 = getelementptr inbounds i32, i32* %mr, i64 0 46 %3 = load i32, i32* %arrayidx40.2, align 4 47 br label %if.end58 48} 49