Use WeakVH to keep track of calls with operand bundles in CloneCodeInfo
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 9 Dec 2015 20:33:52 +0000 (20:33 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 9 Dec 2015 20:33:52 +0000 (20:33 +0000)
commit587b47add04b876fa0e73ef0206949b92738bb99
tree04ea768c53ce327da2acd280af1c99787f06f56c
parent9b40f2a9a5d77ca38eebe97b246aa15be78fef2e
Use WeakVH to keep track of calls with operand bundles in CloneCodeInfo

`CloneAndPruneIntoFromInst` can DCE instructions after cloning them into
the new function, and so an AssertingVH is too strong.  This change
switches CloneCodeInfo to use a std::vector<WeakVH>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255148 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/Cloning.h
lib/Transforms/Utils/InlineFunction.cpp
test/Transforms/Inline/deopt-bundles.ll