OSDN Git Service

[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)
commitc00499c66339b1deadaf095626cf998600d521ec
tree1b9482bf39ea002305876969b08ec26f39a95ee8
parent0ad37f781f87cad95acf1fb8306bb447048068c5
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279268 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/CloneFunction.cpp
test/Transforms/Inline/inline_constprop.ll