From: Michael Beck Date: Wed, 20 Feb 2008 13:40:39 +0000 (+0000) Subject: add prototype for set_opt_overflow_unsafe_transform() X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=c7d0b01f0f11613d97ec0b648501ae8fa9758aec;p=libfirm add prototype for set_opt_overflow_unsafe_transform() [r17807] --- diff --git a/include/libfirm/irflag.h b/include/libfirm/irflag.h index f167f9261..d7263ead4 100644 --- a/include/libfirm/irflag.h +++ b/include/libfirm/irflag.h @@ -134,6 +134,15 @@ void set_opt_control_flow_weak_simplification(int value); /** Enables/Disables strong if and loop simplification (in optimize_cf). */ void set_opt_control_flow_strong_simplification(int value); +/** + * Enables/Disable overflow unsafe transformations (default off). + * If enabled, SubIu(x, 1) might be transformed into AddIu(x, 0xFFFFFFFF). + * While enabling generates better code, it invalidates strength reduction + * of linear-function-test-replacement. + * So, if strength reduction is used, enable it AFTER strength reduction runs. + */ +void set_opt_overflow_unsafe_transform(int value); + /** Enable/Disable optimization of dynamic method dispatch. * * This flag enables/disables the optimization of dynamic method dispatch.