xref: /llvm-project/llvm/test/Transforms/InstCombine/2003-06-05-BranchInvertInfLoop.ll (revision acdc419c897f8a9414c7a00c8908ac32312afee2)
1; This testcase causes an infinite loop in the instruction combiner,
2; because it things that the constant value is a not expression... and
3; constantly inverts the branch back and forth.
4;
5; RUN: opt < %s -passes=instcombine -disable-output
6
7define i8 @test19(i1 %c) {
8        br i1 true, label %True, label %False
9
10True:           ; preds = %0
11        ret i8 1
12
13False:          ; preds = %0
14        ret i8 3
15}
16
17