]> granicus.if.org Git - llvm/commit
Merging r279268:
authorHans Wennborg <hans@hanshq.net>
Mon, 22 Aug 2016 21:23:55 +0000 (21:23 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 22 Aug 2016 21:23:55 +0000 (21:23 +0000)
commit3aa4a350b49916c74f3e9bf7ff5a8f61b9937ab2
treeb0087bf0a254a95190be15a57743ba0add697d38
parent98e9ba6a0b291ccf28c306c9e1f88091a5e01404
Merging r279268:
------------------------------------------------------------------------
r279268 | majnemer | 2016-08-19 09:37:40 -0700 (Fri, 19 Aug 2016) | 5 lines

[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/branches/release_39@279477 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/CloneFunction.cpp
test/Transforms/Inline/inline_constprop.ll