Branch: Tag:

2000-11-28

2000-11-28 02:16:22 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

minor opimization using RETURN_IF_TRUE (suggested by Grubba)

Rev: src/peep.c:1.39

15:   #include "bignum.h"   #include "opcodes.h"    - RCSID("$Id: peep.c,v 1.38 2000/11/25 16:54:46 grubba Exp $"); + RCSID("$Id: peep.c,v 1.39 2000/11/28 02:16:22 hubbe Exp $");      struct p_instr_s   {
287:    case TWOO(F_LAND,F_LAND):    c[e].arg=c[tmp].arg;    continue; +  +  case TWOO(F_LOR, F_RETURN): +  c[e].opcode=F_RETURN_IF_TRUE; +  break; +  +  case TWOO(F_BRANCH, F_RETURN): +  case TWOO(F_BRANCH, F_RETURN_0): +  case TWOO(F_BRANCH, F_RETURN_1): +  case TWOO(F_BRANCH, F_RETURN_LOCAL): +  c[e]=c[tmp]; +  break;    }    break;    }