Add accelerator code generation pass skeleton
[polly-mirror.git] / test / ScopInfo / exit-phi-1.ll
blobb34f1b878b6c052c8e40914022412b1aaadb68e7
1 ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s
2 ; RUN: opt %loadPolly -polly-codegen -disable-output < %s
4 ; Verify we only create one SAI object for up.3.ph as it is outside the SCoP.
6 ; CHECK: Region: %for.body
8 ; CHECK:         Arrays {
9 ; CHECK-NEXT:        double MemRef_up_3_ph; // Element size 8
10 ; CHECK-NEXT:        i32* MemRef_A[*]; // Element size 8
11 ; CHECK-NEXT:    }
13 ; ModuleID = 'bugpoint-reduced-simplified.bc'
14 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
16 ; Function Attrs: uwtable
17 define void @_ZN6soplex14SPxAggregateSM9eliminateERKNS_7SVectorEd(i32** nocapture readonly %A) {
18 entry:
19   br label %for.cond.outer304
21 for.cond.outer304:                                ; preds = %if.else113, %if.then111, %entry
22   %up.3.ph = phi double [ 0.000000e+00, %entry ], [ undef, %if.else113 ], [ undef, %if.then111 ]
23   br i1 undef, label %for.body, label %for.end
25 for.body:                                         ; preds = %for.cond.outer304
26   %0 = load i32*, i32** %A, align 8
27   %add = fadd double %up.3.ph, undef
28   %val.i.i.i235 = getelementptr inbounds i32, i32* %0, i64 0
29   br i1 false, label %if.else113, label %if.then111
31 if.then111:                                       ; preds = %for.body
32   br label %for.cond.outer304
34 if.else113:                                       ; preds = %for.body
35   br label %for.cond.outer304
37 for.end:                                          ; preds = %for.cond.outer304
38   ret void