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