diff options
| author | 2017-03-09 11:15:34 +0000 | |
|---|---|---|
| committer | 2017-03-09 11:15:34 +0000 | |
| commit | 2c3fc44464d261c8ae285abbd140b4523dba005c (patch) | |
| tree | e64872f57c330e17ee814c47f12c49fec0b4b406 /compiler/optimizing/nodes.cc | |
| parent | 2e5a2e2183a8392a7a768f0b7aa70f6ff4cd0cad (diff) | |
| parent | 1eede6ae9b08d305d0c1123284ff958373916474 (diff) | |
Merge "Don't inline methods that throw in graph with irreducible loops."
Diffstat (limited to 'compiler/optimizing/nodes.cc')
| -rw-r--r-- | compiler/optimizing/nodes.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index 62c89100eb..020e4463d4 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -2179,6 +2179,9 @@ HInstruction* HGraph::InlineInto(HGraph* outer_graph, HInvoke* invoke) { } } if (rerun_loop_analysis) { + DCHECK(!outer_graph->HasIrreducibleLoops()) + << "Recomputing loop information in graphs with irreducible loops " + << "is unsupported, as it could lead to loop header changes"; outer_graph->ClearLoopInformation(); outer_graph->ClearDominanceInformation(); outer_graph->BuildDominatorTree(); |