building on the new CallGraphSCC abstraction, teach CallGraphSCCPassManager
authorChris Lattner <sabre@nondot.org>
Fri, 16 Apr 2010 23:04:30 +0000 (23:04 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 16 Apr 2010 23:04:30 +0000 (23:04 +0000)
commitbde0bb5f882ae708ca70a42bdd3a9805e63f6fb7
tree5136f1fffc94de2b38bd783b2cd0718efa9df36d
parent53c5e42ab9c1a2cce7ad19bb0b4dffe33c9473e6
building on the new CallGraphSCC abstraction, teach CallGraphSCCPassManager
to keep the node entries in scc_iterator up to date instead of dangling as
the SCC mutates.

This is a really terrible problem which was causing -g to affect codegen
because it would permute the memory image of the compiler process.

Thanks to Dale for expertly hunting it down.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101565 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/SCCIterator.h
lib/Analysis/IPA/CallGraphSCCPass.cpp