Branch: Tag:

1998-05-12

1998-05-12 23:51:27 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

some optimizations

Rev: src/global.h:1.22
Rev: src/interpret.c:1.81
Rev: src/language.yacc:1.96
Rev: src/las.c:1.62
Rev: src/lex.c:1.53
Rev: src/peep.c:1.24
Rev: src/peep.in:1.15
Rev: src/testsuite.in:1.105

1:   // - // $Id: peep.in,v 1.14 1998/04/01 00:47:49 hubbe Exp $ + // $Id: peep.in,v 1.15 1998/05/12 23:51:26 hubbe Exp $   //      NOP :
33:   NEGATE CONST_1 ADD : COMPL   NEGATE CONST1 SUBTRACT : COMPL   CONST0 ASSIGN_LOCAL_AND_POP : CLEAR_LOCAL($2a) +  + // Remove clearing of locals from the beginning of functions + CLEAR_LOCAL [(fifo_len == (long)instrbuf.s.len / (long)sizeof(p_instr)) && $1a>=remove_clear_locals] : + CLEAR_2_LOCAL [(fifo_len == (long)instrbuf.s.len / (long)sizeof(p_instr)) && $1a>=remove_clear_locals] : + CLEAR_4_LOCAL [(fifo_len == (long)instrbuf.s.len / (long)sizeof(p_instr)) && $1a>=remove_clear_locals] : +    CLEAR_LOCAL NUMBER(0) ASSIGN_LOCAL_AND_POP ($1a) : CLEAR_LOCAL($1a)   CLEAR_LOCAL NUMBER(0) ASSIGN_LOCAL_AND_POP ($1a+1) : CLEAR_2_LOCAL($1a)   CLEAR_2_LOCAL CLEAR_2_LOCAL($1a+2) : CLEAR_4_LOCAL($1a)
170:   NEG_NUMBER ADD_NEG_INT: NUMBER(-$1a-$2a)      LOCAL BRANCH_WHEN_NON_ZERO : BRANCH_IF_LOCAL($1a) POINTER($2a) + LOCAL BRANCH_WHEN_ZERO : BRANCH_IF_NOT_LOCAL($1a) POINTER($2a)      DEC_LOCAL_AND_POP LOCAL ($1a) : DEC_LOCAL ($1a)   INC_LOCAL_AND_POP LOCAL ($1a) : INC_LOCAL ($1a)
217:      BasicBranch0(BRANCH_WHEN_NON_ZERO, BRANCH_AND_POP_WHEN_NON_ZERO)   BasicBranch0(BRANCH_WHEN_ZERO, BRANCH_AND_POP_WHEN_ZERO) +  + LOCAL ASSIGN_LOCAL_AND_POP : LOCAL_2_LOCAL($2a) BYTE($1a) + GLOBAL ASSIGN_LOCAL_AND_POP : GLOBAL_2_LOCAL($1a) BYTE($2a) + LOCAL ASSIGN_GLOBAL_AND_POP : LOCAL_2_GLOBAL($2a) BYTE($1a) +  + LOCAL ARROW : LOCAL_ARROW($2a) BYTE($1a) + LOCAL_ARROW BYTE BRANCH_WHEN_ZERO: BRANCH_IF_NOT_LOCAL_ARROW($1a) BYTE($2a) POINTER($3a) +  + GLOBAL LOCAL_INDEX : GLOBAL_LOCAL_INDEX($1a) BYTE($2a) +  + SIZEOF CONST1 BRANCH_WHEN_LT : SIZEOF BRANCH_WHEN_ZERO ($3a) + SIZEOF_LOCAL CONST1 BRANCH_WHEN_LT : SIZEOF BRANCH_WHEN_ZERO ($3a) + SIZEOF CONST0 BRANCH_WHEN_LE : SIZEOF BRANCH_WHEN_ZERO ($3a) + SIZEOF_LOCAL CONST0 BRANCH_WHEN_LE : SIZEOF BRANCH_WHEN_ZERO ($3a)