Pass Manager hangs with CallGraph and LoopSimplify

Hello,

I have discovered a situation in which the pass manager will infinite
loop. The minimal test case is below this message. The required
structure of these passes is;

Before requires CallGraph
After requires LoopSimplify and Before

I can observe this through opt:

opt -load ./libBug.so -after input.bc -o output.bc

I built my copy of llvm from svn revision 68820 using gcc 4.1.2

Any suggestions?

See http://llvm.org/docs/GettingStarted.html#brokengcc and then try building with something OTHER than GCC 4.1.2 .

See Getting Started with the LLVM System — LLVM 18.0.0git documentation and then try building with something OTHER than GCC 4.1.2 .

I have confirmed this bug with GCC v 4.2.4, which is NOT on your list.

Nick