Imported Upstream version 6.10.0.49

Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2020-01-16 16:38:04 +00:00
parent d94e79959b
commit 468663ddbb
48518 changed files with 2789335 additions and 61176 deletions

View File

@@ -0,0 +1,35 @@
; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s
;
; TODO: We do not allow unbounded loops at the moment.
;
; CHECK-NOT: Stmt_for_body
;
; void f(int *A, int N, int M) {
; for (int i = M; i > N; i++)
; A[i] = i;
; }
;
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
define void @f(i32* %A, i32 %N, i32 %M) {
entry:
br label %entry.split
entry.split:
%cmp.1 = icmp sgt i32 %M, %N
br i1 %cmp.1, label %for.body, label %for.end
for.body:
%indvars.iv = phi i32 [ %indvars.iv.next, %for.body ], [ %M, %entry.split ]
%arrayidx = getelementptr inbounds i32, i32* %A, i32 %indvars.iv
store i32 %indvars.iv, i32* %arrayidx, align 4
%cmp = icmp slt i32 %M, %N
%indvars.iv.next = add i32 %indvars.iv, 1
br i1 %cmp, label %for.cond.for.end_crit_edge, label %for.body
for.cond.for.end_crit_edge:
br label %for.end
for.end:
ret void
}