V4 regalloc: do not overwrite register availability in hole.
authorErik Verbruggen <erik.verbruggen@me.com>
Tue, 27 Aug 2013 13:10:51 +0000 (15:10 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 28 Aug 2013 18:22:02 +0000 (20:22 +0200)
commit01f3a34eda0a6045db76c703b4c2683b7600fb60
treefbd55dbcfa3a61c99cf4dec643c8d80260cf1c4a
parent23919b35ca9b89caf9c767635b966cae117f52d2
V4 regalloc: do not overwrite register availability in hole.

When a fixed interval for a register is inactive, the register is free
until that interval becomes active, or (and this was missing), until
another interval uses it before that position. So instead of blindly
overwriting the freeUntilPos, take the qMin of the existing one with
the intersection position.

Change-Id: I2730a748ef1e46b4782fbb9814e800eca52172f0
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/compiler/qv4regalloc.cpp