aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4jsir.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2014-05-13 16:32:35 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-06-06 14:50:52 +0200
commit4a127e3b2e98c1d690d9baf346e4d3ee8aa4edf1 (patch)
treec1abde3de9c028a05af7ffd6ff8abb92588b5b61 /src/qml/compiler/qv4jsir.cpp
parentf99ddc62ea468bff2700860e30d29be91d74473e (diff)
V4 IR: Store positions for life-time intervals outside the statement.
The statement ids are now stable, so the life-time interval calculation can re-use information calculated by the optimizer. This re-use will be done in a separate patch. It also allows for changes to the numbering in a non-intrusive way. This will also come in a later patch. Change-Id: Ie3a2e1d9e3537cc8070ff3e3007f3a5e8ca0579a Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4jsir.cpp')
-rw-r--r--src/qml/compiler/qv4jsir.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/qml/compiler/qv4jsir.cpp b/src/qml/compiler/qv4jsir.cpp
index 8f2b2ca9e1..6b309cc282 100644
--- a/src/qml/compiler/qv4jsir.cpp
+++ b/src/qml/compiler/qv4jsir.cpp
@@ -494,21 +494,6 @@ void Function::renumberBasicBlocks()
basicBlock(i)->changeIndex(i);
}
-void Function::renumberForLifeRanges()
-{
- //### TODO: check if this can be done in a more elegant way.
-
- int id = 0;
- foreach (BasicBlock *bb, basicBlocks()) {
- foreach (Stmt *s, bb->statements()) {
- if (s->asPhi())
- s->_id = id + 1;
- else
- s->_id = ++id;
- }
- }
-}
-
BasicBlock::~BasicBlock()
{
foreach (Stmt *s, _statements)