Added code to optimize multiplies with constants

This commit is contained in:
ceriel
1991-11-20 15:53:11 +00:00
parent aa0b70d921
commit 17352b8b8d
5 changed files with 163 additions and 3 deletions

View File

@@ -20,6 +20,8 @@ unsigned linecount = 0; /* "line"number for errormessages */
int prodepth = 0; /* Level of nesting */
bool Lflag = 0; /* make library module */
bool nflag = 0; /* do not optimize */
int repl_muls = 0; /* max # of shifts/adds for replacing muls */
bool repl_longmuls = 0; /* replacing longmuls as well? */
line_p instrs,pseudos; /* pointers to chains */
sym_p symhash[NSYMHASH]; /* array of pointers to chains */
FILE *outfile;