blob: 939b8a79fa99859f139adc11a367958f475a8fca [file] [log] [blame]
; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s
;
; This caused an lnt crash at some point, just verify it will run through and
; produce the PHI node in the exit we are looking for.
;
; CHECK: %eps1.addr.0.s2a = alloca double
; CHECK-NOT: %eps1.addr.0.ph.s2a = alloca double
;
; CHECK-LABEL: polly.merge_new_and_old:
; CHECK: %eps1.addr.0.ph.merge = phi double [ %eps1.addr.0.ph.final_reload, %polly.exiting ], [ %eps1.addr.0.ph, %if.end.47.region_exiting ]
;
; CHECK-LABEL: polly.start:
; CHECK-NEXT: store double %eps1, double* %eps1.s2a
;
; CHECK-LABEL: polly.exiting:
; CHECK-NEXT: %eps1.addr.0.ph.final_reload = load double, double* %eps1.addr.0.s2a
;
define void @dbisect(double* %c, double* %b, double %eps1, double* %eps2) {
entry:
br label %entry.split
entry.split: ; preds = %entry
store double 0.000000e+00, double* %b, align 8
br i1 false, label %for.inc, label %for.end
if.end: ; preds = %if.then, %for.body
%arrayidx33 = getelementptr inbounds double, double* %c, i64 0
%0 = load double, double* %arrayidx33, align 8
br label %for.inc
for.inc: ; preds = %if.then.36, %if.end
br i1 false, label %if.end, label %for.cond.for.end_crit_edge
for.cond.for.end_crit_edge: ; preds = %for.inc
br label %for.end
for.end: ; preds = %for.cond.for.end_crit_edge, %entry.split
%cmp45 = fcmp ugt double %eps1, 0.000000e+00
br i1 %cmp45, label %if.end.47, label %if.then.46
if.then.46: ; preds = %for.end
%1 = load double, double* %eps2, align 8
br label %if.end.47
if.end.47: ; preds = %if.then.46, %for.end
%eps1.addr.0 = phi double [ %1, %if.then.46 ], [ %eps1, %for.end ]
ret void
}