You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
2.0 KiB
49 lines
2.0 KiB
4 months ago
|
; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops \
|
||
|
; RUN: -polly-invariant-load-hoisting=true \
|
||
|
; RUN: < %s 2>&1 | FileCheck %s
|
||
|
;
|
||
|
; CHECK: Low complexity assumption:
|
||
|
;
|
||
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||
|
|
||
|
@board = external global [421 x i8], align 16
|
||
|
|
||
|
; Function Attrs: nounwind uwtable
|
||
|
define fastcc void @ping_recurse(i32* nocapture %mx, i32* nocapture %mr, i32 %color) unnamed_addr {
|
||
|
entry:
|
||
|
br label %land.lhs.true38.1
|
||
|
|
||
|
if.end58: ; preds = %land.lhs.true38.2, %if.end54.1
|
||
|
ret void
|
||
|
|
||
|
land.lhs.true38.1: ; preds = %entry
|
||
|
%arrayidx34.1 = getelementptr inbounds [421 x i8], [421 x i8]* @board, i64 0, i64 0
|
||
|
%arrayidx40.1 = getelementptr inbounds i32, i32* %mr, i64 0
|
||
|
%0 = load i32, i32* %arrayidx40.1, align 4
|
||
|
%cmp41.1 = icmp eq i32 %0, 0
|
||
|
br i1 %cmp41.1, label %land.lhs.true43.1, label %if.end54.1
|
||
|
|
||
|
land.lhs.true43.1: ; preds = %land.lhs.true38.1
|
||
|
%arrayidx45.1 = getelementptr inbounds i32, i32* %mx, i64 0
|
||
|
%1 = load i32, i32* %arrayidx45.1, align 4
|
||
|
%cmp46.1 = icmp eq i32 %1, 1
|
||
|
%cmp51.1 = icmp eq i32 0, %color
|
||
|
%or.cond.1 = or i1 %cmp51.1, %cmp46.1
|
||
|
br i1 %or.cond.1, label %if.then53.1, label %if.end54.1
|
||
|
|
||
|
if.then53.1: ; preds = %land.lhs.true43.1
|
||
|
tail call fastcc void @ping_recurse(i32* nonnull %mx, i32* nonnull %mr, i32 %color)
|
||
|
br label %if.end54.1
|
||
|
|
||
|
if.end54.1: ; preds = %if.then53.1, %land.lhs.true43.1, %land.lhs.true38.1
|
||
|
%arrayidx34.2 = getelementptr inbounds [421 x i8], [421 x i8]* @board, i64 0, i64 0
|
||
|
%2 = load i8, i8* %arrayidx34.2, align 1
|
||
|
%cmp36.2 = icmp eq i8 %2, 3
|
||
|
br i1 %cmp36.2, label %if.end58, label %land.lhs.true38.2
|
||
|
|
||
|
land.lhs.true38.2: ; preds = %if.end54.1
|
||
|
%arrayidx40.2 = getelementptr inbounds i32, i32* %mr, i64 0
|
||
|
%3 = load i32, i32* %arrayidx40.2, align 4
|
||
|
br label %if.end58
|
||
|
}
|