summaryrefslogtreecommitdiffstats
path: root/compiler/dex/mir_graph.h
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2014-12-19 10:29:51 +0000
committerVladimir Marko <vmarko@google.com>2014-12-19 15:22:51 +0000
commit341e425599ba32f0776bcd294882e1e30cafa10f (patch)
tree9a2ac9cd1d9732e5d0243dcbb2474dd2e746e908 /compiler/dex/mir_graph.h
parentffda4993af78484feb7a4ce5497c1796463c0ba1 (diff)
downloadandroid_art-341e425599ba32f0776bcd294882e1e30cafa10f.tar.gz
android_art-341e425599ba32f0776bcd294882e1e30cafa10f.tar.bz2
android_art-341e425599ba32f0776bcd294882e1e30cafa10f.zip
Clean up dead loops before suspend check elimination.
Get rid of BasicBlock::KillUnreachable() and just Kill() unreachable blocks from the DFS order calculation. Bug: 18718277 Change-Id: Icaf7b9c2320530e950f87e1e2e2bd1fa5f53cb98
Diffstat (limited to 'compiler/dex/mir_graph.h')
-rw-r--r--compiler/dex/mir_graph.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/compiler/dex/mir_graph.h b/compiler/dex/mir_graph.h
index 5c5d22983b..23bdd87239 100644
--- a/compiler/dex/mir_graph.h
+++ b/compiler/dex/mir_graph.h
@@ -410,18 +410,12 @@ class BasicBlock : public DeletableArenaObject<kArenaAllocBB> {
/**
* @brief Kill the BasicBlock.
- * @details Unlink predecessors to make this block unreachable, then KillUnreachable().
+ * @details Unlink predecessors and successors, remove all MIRs, set the block type to kDead
+ * and set hidden to true.
*/
void Kill(MIRGraph* mir_graph);
/**
- * @brief Kill the unreachable block and all blocks that become unreachable by killing this one.
- * @details Set the block type to kDead and set hidden to true, remove all MIRs,
- * unlink all successors and recursively kill successors that become unreachable.
- */
- void KillUnreachable(MIRGraph* mir_graph);
-
- /**
* @brief Is ssa_reg the last SSA definition of that VR in the block?
*/
bool IsSSALiveOut(const CompilationUnit* c_unit, int ssa_reg);