Quick: Improve the BBCombine pass.
Eliminate exception edges for insns that cannot throw even
when inside a try-block. Run the BBCombine pass before the
SSA transformation to reduce the compilation time.
Bug: 16398693
Change-Id: I8e91df593e316c994679b9d482b0ae20700b9499
diff --git a/compiler/dex/pass_driver_me_opts.cc b/compiler/dex/pass_driver_me_opts.cc
index f83b96c..a2bf8b4 100644
--- a/compiler/dex/pass_driver_me_opts.cc
+++ b/compiler/dex/pass_driver_me_opts.cc
@@ -41,10 +41,10 @@
GetPassInstance<ClassInitCheckElimination>(),
GetPassInstance<SpecialMethodInliner>(),
GetPassInstance<NullCheckElimination>(),
+ GetPassInstance<BBCombine>(),
GetPassInstance<CodeLayout>(),
GetPassInstance<TypeInference>(),
GetPassInstance<GlobalValueNumberingPass>(),
- GetPassInstance<BBCombine>(),
GetPassInstance<BBOptimizations>(),
};