From: Julian Seward Date: Sun, 25 Jul 2004 17:24:02 +0000 (+0000) Subject: Fix some bug or other to do with moving values out of the way X-Git-Tag: svn/VALGRIND_3_0_1^2~1215 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13e1690aeee96749b575fe893cb48a70176f23eb;p=thirdparty%2Fvalgrind.git Fix some bug or other to do with moving values out of the way of rreg live ranges too early. All this stuff needs revisiting. git-svn-id: svn://svn.valgrind.org/vex/trunk@119 --- diff --git a/VEX/priv/host-generic/reg_alloc.c b/VEX/priv/host-generic/reg_alloc.c index 36c610f3ca..2aebf95446 100644 --- a/VEX/priv/host-generic/reg_alloc.c +++ b/VEX/priv/host-generic/reg_alloc.c @@ -749,7 +749,7 @@ HInstrArray* doRegisterAllocation ( still live. */ m = hregNumber(state[k].vreg); vassert(m >= 0 && m < n_vregs); - if (vreg_info[m].dead_before > ii) { + if (vreg_info[m].dead_before >= ii) { vassert(vreg_info[m].reg_class != HRcINVALID); EMIT_INSTR( (*genSpill)( state[k].rreg, vreg_info[m].spill_offset ) );