V4 regalloc: fix the case where too few regs are available.
authorErik Verbruggen <erik.verbruggen@me.com>
Wed, 25 Sep 2013 10:11:14 +0000 (12:11 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 28 Sep 2013 21:56:53 +0000 (23:56 +0200)
commitbedd13b7c69af2ca830860a3fd3939f4d8384f15
tree3f646f5c8433d135224f539f9085ec3bdf2d6d16
parente62a61cdbc22dcf0dd2c6c8c22b06be897577ec0
V4 regalloc: fix the case where too few regs are available.

When all registers are allocated, and a new range gets active, some
other range will have to be split and spilled to the stack. This gets
slightly more complicated when the temporary is defined by a phi-node,
so in that case, the temporary is immediately spilled.

Change-Id: Iaab8b8e88849866e5841ae752377796e8540e30f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qv4regalloc.cpp
src/qml/compiler/qv4regalloc_p.h