| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/redundancy_elimination.h" | 5 #include "vm/redundancy_elimination.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/flow_graph.h" | 8 #include "vm/flow_graph.h" |
| 9 #include "vm/hash_map.h" | 9 #include "vm/hash_map.h" |
| 10 #include "vm/il_printer.h" | 10 #include "vm/il_printer.h" |
| 11 #include "vm/intermediate_language.h" | 11 #include "vm/intermediate_language.h" |
| 12 #include "vm/stack_frame.h" | 12 #include "vm/stack_frame.h" |
| 13 | 13 |
| 14 #if !defined(DART_PRECOMPILED_RUNTIME) |
| 15 |
| 14 namespace dart { | 16 namespace dart { |
| 15 | 17 |
| 16 | 18 |
| 17 DEFINE_FLAG(bool, dead_store_elimination, true, "Eliminate dead stores"); | 19 DEFINE_FLAG(bool, dead_store_elimination, true, "Eliminate dead stores"); |
| 18 DEFINE_FLAG(bool, load_cse, true, "Use redundant load elimination."); | 20 DEFINE_FLAG(bool, load_cse, true, "Use redundant load elimination."); |
| 19 DEFINE_FLAG(bool, | 21 DEFINE_FLAG(bool, |
| 20 trace_load_optimization, | 22 trace_load_optimization, |
| 21 false, | 23 false, |
| 22 "Print live sets for load optimization pass."); | 24 "Print live sets for load optimization pass."); |
| 23 | 25 |
| (...skipping 3353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3377 join->phis_ = NULL; | 3379 join->phis_ = NULL; |
| 3378 } else { | 3380 } else { |
| 3379 join->phis_->TruncateTo(to_index); | 3381 join->phis_->TruncateTo(to_index); |
| 3380 } | 3382 } |
| 3381 } | 3383 } |
| 3382 } | 3384 } |
| 3383 } | 3385 } |
| 3384 | 3386 |
| 3385 | 3387 |
| 3386 } // namespace dart | 3388 } // namespace dart |
| 3389 |
| 3390 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| OLD | NEW |