[LCG] Special case the removal of self edges. These don't impact the SCC
authorChandler Carruth <chandlerc@gmail.com>
Sat, 26 Apr 2014 03:36:37 +0000 (03:36 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 26 Apr 2014 03:36:37 +0000 (03:36 +0000)
commit0c8f0bfce2edbd1f22604c5243b7ae016067a2ad
treebd2e5b57f3924b011bdc36c71bbaad47741d1923
parentd10a9fb25a2f96850e375f3974d749803a1c3d84
[LCG] Special case the removal of self edges. These don't impact the SCC
graph in any way because we don't track edges in the SCC graph, just
nodes. This also lets us add a nice assert about the invariant that
we're working on at least a certain number of nodes within the SCC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207305 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LazyCallGraph.cpp