[LLVMdev] SCCIterator and unconnected graphs

Duncan Sands baldrick at free.fr
Fri Sep 4 10:38:18 PDT 2009

Hi Hans,

> I am using the scc_iterator class in my code on a CallGraph, where some 
> functions are not called from within the module. It seems that 
> scc_iterator does not list all SCCs if the graph is not connected; only 
> those nodes connected to the node pointed to by 
> GraphTraits<...>::getEntryNode() are returned.

is the callgraph itself complete?  I.e. is the problem in the iterator
or in the callgraph construction?  Also, can you please post a testcase.



More information about the llvm-dev mailing list