diff options
| author | 2014-06-19 14:59:05 +0100 | |
|---|---|---|
| committer | 2014-06-19 17:01:02 +0100 | |
| commit | 622bdbe6c295b08d06dfaa8d896b9ca152aa899c (patch) | |
| tree | b4f48348ef21ebc58641ffe776ff5d975e3d0a78 /compiler/dex/mir_graph.h | |
| parent | 995b32cc8e94a9730d6cf663a23afc9c997c1771 (diff) | |
Fix topological ordering and use it for optimizations.
Use the topological sort order for ClassInitCheckElimination
and NullCheckEliminationAndTypeInference.
Change-Id: I315ca7f300dd11390f48aefebfe988baf91bdcf1
Diffstat (limited to 'compiler/dex/mir_graph.h')
| -rw-r--r-- | compiler/dex/mir_graph.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/dex/mir_graph.h b/compiler/dex/mir_graph.h index 15c0aa4eaf..6c4d8e3c2a 100644 --- a/compiler/dex/mir_graph.h +++ b/compiler/dex/mir_graph.h @@ -701,6 +701,7 @@ class MIRGraph { void BasicBlockOptimization(); GrowableArray<BasicBlockId>* GetTopologicalSortOrder() { + DCHECK(topological_order_ != nullptr); return topological_order_; } |