Set the parent for basic blocks during inlining.
authorSteven Perron <stevenperron@google.com>
Mon, 11 Dec 2017 18:10:24 +0000 (13:10 -0500)
committerSteven Perron <stevenperron@google.com>
Tue, 12 Dec 2017 18:39:08 +0000 (13:39 -0500)
commit07ce16d1e72c5c8d9f83561dd926e61dd8aecb4f
treedd9a8c490a23e236eb27147d79e8aab40e4593f8
parent2fc1221c3d9751ff69d8aaa3d25645c13e234af6
Set the parent for basic blocks during inlining.

Inlining is not setting the parent (function) for each basic block.
This can cause problems for later optimizations.  The solution is to set
the parent for each new block just before it is linked into the
function.
source/opt/inline_exhaustive_pass.cpp
test/opt/inline_test.cpp