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