From 18e6873c469b48aaed22148451523479eece98e3 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 17 Jun 2015 23:09:05 +0100 Subject: Fix a bug in optimizing when the null constant has been DCE. If it has been DCE, we should create a new one, instead of using the old one. Also move the first DCE to a place where it could actually be useful. bug:21870788 Change-Id: I28fc52ae481ef92cba45fc1b5abcf07c995f524c --- compiler/optimizing/optimizing_compiler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing/optimizing_compiler.cc') diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 303a7cb1fd..c695abea14 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -348,10 +348,10 @@ static void RunOptimizations(HGraph* graph, HOptimization* optimizations[] = { intrinsics, - dce1, fold1, simplify1, type_propagation, + dce1, simplify2, inliner, // Run another type propagation phase: inlining will open up more opprotunities -- cgit v1.2.3-59-g8ed1b