mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
Modified the testcases to use both pass managers Use single commandline flag for both pass managers. Differential Revision: https://reviews.llvm.org/D52708 Reviewers: sebpop, tejohnson, brzycki, SirishP Reviewed By: tejohnson, brzycki git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343662 91177308-0d34-0410-b5e6-96231b3b80d8
30 lines
566 B
LLVM
30 lines
566 B
LLVM
; RUN: opt -hotcoldsplit -S < %s
|
|
; RUN: opt -passes=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
|
|
}
|