diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2014-07-23 12:17:28 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2014-08-18 16:05:51 +0200 |
commit | 7e5a589b905969a5712b801cec01be257fbc237c (patch) | |
tree | 77474e5ba865779da494463a3bab2a4fafd10183 /src/qml/compiler/qv4jsir.cpp | |
parent | 23193dbdd1ed777731e34b25d0ab19d190014152 (diff) |
V4 IR: add immediate dominator re-calculation.
When removing edges, the control-flow graph changes, so some immediate
dominators might need to be updated. This change collects all candidates
and processes them in a single batch.
Change-Id: I928f42232427a84bcb9658e314dadd0bd021b12f
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4jsir.cpp')
-rw-r--r-- | src/qml/compiler/qv4jsir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4jsir.cpp b/src/qml/compiler/qv4jsir.cpp index 36fb66b164..01020be23e 100644 --- a/src/qml/compiler/qv4jsir.cpp +++ b/src/qml/compiler/qv4jsir.cpp @@ -735,7 +735,7 @@ Stmt *BasicBlock::CJUMP(Expr *cond, BasicBlock *iftrue, BasicBlock *iffalse) } CJump *s = function->NewStmt<CJump>(); - s->init(cond, iftrue, iffalse); + s->init(cond, iftrue, iffalse, this); appendStatement(s); Q_ASSERT(! out.contains(iftrue)); |