OSDN Git Service

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)
commit0c8b326d8a151027796daaa1019026003e209173
tree0f8983157fdcfddefc05b6d3812af89e266a230c
parent2748d2872bf425460616528fe1130d831dacd9d5
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]