Here is the list of the renamed passes: - `callbrprepare` -> `callbr-prepare` - `dwarfehprepare` -> `dwarf-eh-prepare` - `flattencfg` -> `flatten-cfg` - `loweratomic` -> `lower-atomic` - `lowerinvoke` -> `lower-invoke` - `lowerswitch` -> `lower-switch` - `winehprepare` -> `win-eh-prepare` - `targetir` -> `target-ir` - `targetlibinfo` -> `target-lib-info` Legacy passes are not affected.
10 lines
125 B
LLVM
10 lines
125 B
LLVM
; RUN: opt < %s -passes=lower-switch
|
|
|
|
define void @test() {
|
|
switch i32 0, label %Next [
|
|
]
|
|
Next: ; preds = %0
|
|
ret void
|
|
}
|
|
|