Branch: Tag:

2007-05-29

2007-05-29 16:50:48 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed broken optimization for NUMBER <==> NEG_NUMBER.

Rev: src/peep.in:1.81

1:   // This file is part of Pike. For copyright information see COPYRIGHT.   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information. - // $Id: peep.in,v 1.80 2006/03/15 12:27:25 grubba Exp $ + // $Id: peep.in,v 1.81 2007/05/29 16:50:48 grubba Exp $      NOP :   POP_N_ELEMS (0) :
36:   CONST_1 NEGATE : CONST1   NUMBER NEGATE : NEG_NUMBER($1a)   NEG_NUMBER NEGATE : NUMBER ($1a) - NUMBER [$1a < 0] : NEG_NUMBER (-$1a) - NEG_NUMBER [$1a <= 0 && (-$1a)>=0] : NUMBER (-$1a) + NUMBER [(-$1a) > 0] : NEG_NUMBER (-$1a) + NEG_NUMBER [(-$1a) >= 0] : NUMBER (-$1a)   NEGATE NEGATE :   COMPL COMPL :   NEGATE CONST_1 ADD_INTS : COMPL