X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firflag.c;h=1169a7adf9cb7951b7581ea9c5be4d983db6dd19;hb=5f8ddee6b08c8040c0a304a347d65045c1141d52;hp=2095d021a21201ec6c44a09c52142af0f6152621;hpb=efbeaff549fcc6015da255ed4d453a95937ff0fd;p=libfirm diff --git a/ir/ir/irflag.c b/ir/ir/irflag.c index 2095d021a..1169a7adf 100644 --- a/ir/ir/irflag.c +++ b/ir/ir/irflag.c @@ -6,45 +6,59 @@ ** irflag --- optimization flags */ -# include "irflag.h" -int opt_cse = 0; +/* 0 - don't do this optimization + 1 - lets see, if there is a better graph */ +int opt_cse = 1; int opt_constant_folding = 1; +int opt_dead_node_elimination = 1; int optimized = 1; /* set the flags with set_flagname, get the flag with get_flagname */ -void +inline void set_opt_cse (int value) { opt_cse = value; } -int +inline int get_opt_cse (void) { return opt_cse; } -void +inline void set_opt_constant_folding (int value) { opt_constant_folding=value; } -int +inline int get_opt_constant_folding (void) { return opt_constant_folding; } -void +inline void +set_opt_dead_node_elimination (int value) +{ + opt_dead_node_elimination = value; +} + +inline int +get_opt_dead_node_elimination (void) +{ + return opt_dead_node_elimination; +} + +inline void set_optimize (int value) { optimized = value; } -int +inline int get_optimize (void) { return optimized;