blob: ce8e7b554d5be7b12ed2b10b458f1f236a435370 [file] [log] [blame]
; RUN: opt -hotcoldsplit -S < %s
; Make sure this compiles. This test used to fail with an invalid phi node: the
; two predecessors were outlined and the SSA representation was invalid.
define void @fun() {
entry:
br i1 undef, label %if.then, label %if.else
if.then:
unreachable
if.else:
br label %if.then4
if.then4:
br i1 undef, label %if.then5, label %if.end
if.then5:
br label %cleanup
if.end:
br label %cleanup
cleanup:
%cleanup.dest.slot.0 = phi i32 [ 1, %if.then5 ], [ 0, %if.end ]
unreachable
}