summaryrefslogtreecommitdiff
path: root/compiler/dex/mir_graph.cc
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2015-01-29 01:17:10 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-01-29 01:17:11 +0000
commit4a50662eeaa0b1a26be66e7584fb765151dabc59 (patch)
tree0f298a17285fd845303472e2c27ccd69f586feac /compiler/dex/mir_graph.cc
parentf08c6506858ff06d61c8f7ca2741409cd62142f5 (diff)
parent5bdab12d8b48ca4c395d9d2c506ebff0df01b734 (diff)
Merge "Clean up pass driver"
Diffstat (limited to 'compiler/dex/mir_graph.cc')
-rw-r--r--compiler/dex/mir_graph.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/dex/mir_graph.cc b/compiler/dex/mir_graph.cc
index db4141c348..0f7d45df79 100644
--- a/compiler/dex/mir_graph.cc
+++ b/compiler/dex/mir_graph.cc
@@ -30,6 +30,7 @@
#include "dex_instruction-inl.h"
#include "driver/compiler_driver.h"
#include "driver/dex_compilation_unit.h"
+#include "dex/quick/quick_compiler.h"
#include "leb128.h"
#include "pass_driver_me_post_opt.h"
#include "stack.h"
@@ -2432,7 +2433,10 @@ BasicBlock* MIRGraph::CreateNewBB(BBType block_type) {
}
void MIRGraph::CalculateBasicBlockInformation() {
- PassDriverMEPostOpt driver(cu_);
+ auto* quick_compiler = down_cast<QuickCompiler*>(cu_->compiler_driver->GetCompiler());
+ DCHECK(quick_compiler != nullptr);
+ /* Create the pass driver and launch it */
+ PassDriverMEPostOpt driver(quick_compiler->GetPostOptPassManager(), cu_);
driver.Launch();
}