1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/Transforms/ADCE/2017-08-21-DomTree-deletions.ll
Eric Christopher a62270de2c Revert "Temporarily Revert "Add basic loop fusion pass.""
The reversion apparently deleted the test/Transforms directory.

Will be re-reverting again.

llvm-svn: 358552
2019-04-17 04:52:47 +00:00

25 lines
612 B
LLVM

; RUN: opt < %s -adce | llvm-dis
; RUN: opt < %s -adce -verify-dom-info | llvm-dis
define void @foo() {
entry:
br label %switch
switch: ; preds = %entry
switch i32 undef, label %default [
i32 2, label %two
i32 5, label %five
i32 4, label %four
]
four: ; preds = %switch
br label %exit
five: ; preds = %switch
br label %exit
two: ; preds = %switch
br label %exit
default: ; preds = %switch
br label %exit
exit: ; preds = %default, %two, %five, %four
ret void
}