2 ; RUN: opt -passes='simple-loop-unswitch<nontrivial>' -disable-output -S < %s
3 ; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>)' -disable-output -S < %s
5 ; This loop shouldn't trigger asserts in SimpleLoopUnswitch.
6 define void @test_redundant_switch(ptr %ptr, i32 %cond) {
11 switch i32 %cond, label %loop_body [
12 i32 0, label %loop_body
19 %v = load i1, ptr %ptr
20 br i1 %v, label %loop_begin, label %loop_exit