From 55bd749991f9a0a73f612696e1a93e739380546b Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 16 Feb 2016 15:37:12 +0000 Subject: Refactor the inliner. In preparation for more polymorphic inlining, refactor the inliner a bit. Change-Id: Ie3fd6c1ef205f1089989c67a527e6f57ff3c8b5d --- compiler/optimizing/nodes.cc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'compiler/optimizing/nodes.cc') diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index ca66f631a6..27015c0ac6 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -2030,13 +2030,6 @@ HInstruction* HGraph::InlineInto(HGraph* outer_graph, HInvoke* invoke) { } } - if (return_value != nullptr) { - invoke->ReplaceWith(return_value); - } - - // Finally remove the invoke from the caller. - invoke->GetBlock()->RemoveInstruction(invoke); - return return_value; } -- cgit v1.2.3-59-g8ed1b