From c7d0b01f0f11613d97ec0b648501ae8fa9758aec Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 20 Feb 2008 13:40:39 +0000 Subject: [PATCH] add prototype for set_opt_overflow_unsafe_transform() [r17807] --- include/libfirm/irflag.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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. -- 2.20.1