Chris Lattner | e295306 | 2003-06-05 20:12:32 +0000 | [diff] [blame^] | 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: as < %s | opt -instcombine -disable-output | ||||
6 | |||||
7 | ubyte %test19(bool %c) { | ||||
8 | br bool true, label %True, label %False | ||||
9 | True: | ||||
10 | ret ubyte 1 | ||||
11 | False: | ||||
12 | ret ubyte 3 | ||||
13 | } | ||||
14 |