1 ; RUN: opt < %s -reassociate -disable-output
3 ; It has been detected that dead loops like the one in this test case can be
4 ; created by -jump-threading (it was detected by a csmith generated program).
6 ; According to -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 -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() {