diff options
author | Erik Verbruggen <erik.verbruggen@me.com> | 2013-09-13 18:43:46 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-25 09:46:15 +0200 |
commit | a5b82cca184c613b40ce55646e522d7cb7f7a60a (patch) | |
tree | 1e5ea11bad048a2c5fbaee9d68a4c36961ada54f /src/qml/compiler/qv4ssa_p.h | |
parent | 51c31660b147c5cd9912ce6670399aa2bb4fb831 (diff) |
V4: fix move mapping
When resolving conflicting register use between basic blocks, only
insert the resolving moves into the successor when it has one incoming
edge. Because of the absence of critical edges, this implies that it is
also save to insert those moves into the predecessor block if there is
more than one incoming edge (the predecessor will only have one outgoing
edge).
Change-Id: I83c41b4ca86946d3aa09619f20ddab3e692136f2
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4ssa_p.h')
-rw-r--r-- | src/qml/compiler/qv4ssa_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4ssa_p.h b/src/qml/compiler/qv4ssa_p.h index 1fabc8e76f..1aa21eee11 100644 --- a/src/qml/compiler/qv4ssa_p.h +++ b/src/qml/compiler/qv4ssa_p.h @@ -164,7 +164,7 @@ class MoveMapping public: void add(Expr *from, Temp *to, int id = 0); void order(); - void insertMoves(BasicBlock *predecessor, Function *function) const; + void insertMoves(BasicBlock *bb, Function *function, bool atEnd) const; void dump() const; |