diff options
| author | Nicolas Geoffray <ngeoffray@google.com> | 2015-06-17 23:09:05 +0100 |
|---|---|---|
| committer | Nicolas Geoffray <ngeoffray@google.com> | 2015-06-17 23:11:39 +0100 |
| commit | 18e6873c469b48aaed22148451523479eece98e3 (patch) | |
| tree | 6df7efad2f7777bb0a4dbcbbe719750393eac531 /compiler/optimizing/optimizing_compiler.cc | |
| parent | edb83c606e034d76bed1331f34cdc435df47bb95 (diff) | |
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
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
| -rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
