diff options
author | Vladimir Marko <vmarko@google.com> | 2014-11-24 14:09:46 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2014-11-24 14:40:22 +0000 |
commit | 26e7d454b9924f3673b075b05e4c604ad658a062 (patch) | |
tree | 6cfc018247661e298137cb0985b6ce7c7fb400a6 /compiler/dex/mir_graph.h | |
parent | c2155048075b4916536f3aa23a88cd483b0f64a2 (diff) | |
download | art-26e7d454b9924f3673b075b05e4c604ad658a062.tar.gz art-26e7d454b9924f3673b075b05e4c604ad658a062.tar.bz2 art-26e7d454b9924f3673b075b05e4c604ad658a062.zip |
Eliminate suspend checks on back-edges to return insn.
This optimization seems to have been broken for a long time.
Change-Id: I62ec85c71bb5253917ad9465a952911e917f6b52
Diffstat (limited to 'compiler/dex/mir_graph.h')
-rw-r--r-- | compiler/dex/mir_graph.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/dex/mir_graph.h b/compiler/dex/mir_graph.h index 63b1f2d95f..c8ea972d9d 100644 --- a/compiler/dex/mir_graph.h +++ b/compiler/dex/mir_graph.h @@ -444,6 +444,11 @@ class BasicBlock : public DeletableArenaObject<kArenaAllocBB> { void UpdatePredecessor(BasicBlockId old_pred, BasicBlockId new_pred); /** + * @brief Return first non-Phi insn. + */ + MIR* GetFirstNonPhiInsn(); + + /** * @brief Used to obtain the next MIR that follows unconditionally. * @details The implementation does not guarantee that a MIR does not * follow even if this method returns nullptr. |