add a DEBUG call so that -debug lists when CGSCCPM iterates.
authorChris Lattner <sabre@nondot.org>
Thu, 22 Apr 2010 20:42:33 +0000 (20:42 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 22 Apr 2010 20:42:33 +0000 (20:42 +0000)
commitb61789d4dd851c2481d0ad95c7a710d567fb86f7
tree0f8983157fdcfddefc05b6d3812af89e266a230c
parentf8b99cb03bd2278328e995c4b8400a09f77ef19b
add a DEBUG call so that -debug lists when CGSCCPM iterates.

Fix RefreshCallGraph to use CGN->replaceCallEdge instead of hand
rolling its own loop.  replaceCallEdge properly maintains the
reference counts of the nodes, fixing a crash exposed by the
iterative callgraph stuff.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102120 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/IPA/CallGraphSCCPass.cpp
test/Transforms/Inline/crash2.ll [new file with mode: 0644]