From cdaea0d861a9de59a98f2dc1433456c19dae2d41 Mon Sep 17 00:00:00 2001 From: edwin Date: Wed, 22 Nov 2006 18:03:12 +0000 Subject: [PATCH] * src/vm/jit/alpha/codegen.c (codegen): Do not generate code for ASTORE storing a returnAddress, as 1) the store is dead, and 2) the dest. variable has no valid allocation. --- src/vm/jit/alpha/codegen.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/vm/jit/alpha/codegen.c b/src/vm/jit/alpha/codegen.c index 6e08fde72..dfbd56c94 100644 --- a/src/vm/jit/alpha/codegen.c +++ b/src/vm/jit/alpha/codegen.c @@ -31,7 +31,7 @@ Christian Ullrich Edwin Steiner - $Id: codegen.c 6031 2006-11-20 16:18:19Z twisti $ + $Id: codegen.c 6038 2006-11-22 18:03:12Z edwin $ */ @@ -481,7 +481,6 @@ bool codegen(jitdata *jd) case ICMD_FLOAD: case ICMD_DLOAD: case ICMD_ISTORE: /* ..., value ==> ... */ - case ICMD_ASTORE: /* dst = local variable */ case ICMD_LSTORE: case ICMD_FSTORE: case ICMD_DSTORE: @@ -490,6 +489,12 @@ bool codegen(jitdata *jd) emit_copy(jd, iptr, VAROP(iptr->s1), VAROP(iptr->dst)); break; + + case ICMD_ASTORE: + + if (!(iptr->flags.bits & INS_FLAG_RETADDR)) + emit_copy(jd, iptr, VAROP(iptr->s1), VAROP(iptr->dst)); + break; /* pop operations *****************************************************/ -- 2.25.1