[CloneFunction] Don't remove unrelated nodes from the CGSSC
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 19 Aug 2016 16:37:40 +0000 (16:37 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 19 Aug 2016 16:37:40 +0000 (16:37 +0000)
commit5554edabef3814395360c37e9854fa4aa7b1731e
tree33f153ab299f5c7c5bcbf6baccea3d41d5692c2b
parent9335bf0ec5c19bbaf027847682c44451b6affef8
[CloneFunction] Don't remove unrelated nodes from the CGSSC

CGSCC use a WeakVH to track call sites.  RAUW a call within a function
can result in that WeakVH getting confused about whether or not the call
site is still around.

llvm-svn: 279268
llvm/lib/Transforms/Utils/CloneFunction.cpp
llvm/test/Transforms/Inline/inline_constprop.ll