ENABLE(OPT_OPTIMIZED) |
ENABLE(OPT_CSE) |
DISABLE(OPT_GLOBAL_CSE) |
+ ENABLE(OPT_STRENGTH_RED) |
ENABLE(OPT_CONSTANT_FOLDING) |
+ ENABLE(OPT_REDUNDANT_LOADSTORE) |
ENABLE(OPT_UNREACHABLE_CODE) |
ENABLE(OPT_CONTROL_FLOW_STRAIGHTENING) |
ENABLE(OPT_CONTROL_FLOW_WEAK_SIMPLIFICATION) |
libFIRM_opt &= ~OPT_GLOBAL_CSE;
}
+void set_opt_strength_red (int value)
+{
+ if (value)
+ libFIRM_opt |= OPT_STRENGTH_RED;
+ else
+ libFIRM_opt &= ~OPT_STRENGTH_RED;
+}
+
void
set_opt_constant_folding(int value)
{
libFIRM_opt &= ~OPT_CONSTANT_FOLDING;
}
+void
+set_opt_redundant_LoadStore(int value) {
+ if (value)
+ libFIRM_opt |= OPT_REDUNDANT_LOADSTORE;
+ else
+ libFIRM_opt &= ~OPT_REDUNDANT_LOADSTORE;
+}
+
void
set_opt_unreachable_code(int value)
{