1 ; RUN: opt < %s -passes=reassociate -disable-output
3 ; It has been detected that dead loops like the one in this test case can be
4 ; created by -passes=jump-threading (it was detected by a csmith generated program).
6 ; According to -passes=verify this is valid input (even if it could be discussed if
7 ; the dead loop really satisfies SSA form).
9 ; The problem found was that the -passes=reassociate pass ends up in an infinite loop
10 ; when analysing the 'deadloop1' basic block. See "Bugzilla - Bug 30818".
11 define void @deadloop1() {
24 ; Another example showing that dead code could result in infinite loops in
25 ; reassociate pass. See "Bugzilla - Bug 30818".
26 define void @deadloop2() {