Commit 8c1016d9 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

types: Remove mtp_property_runtime.

The only user is unreachable (ignore_runtime is false).
parent be94dc6f
......@@ -261,21 +261,19 @@ typedef enum mtp_additional_properties {
/** This method is intrinsic. It is expected that a lowering phase will
* remove all calls to it. */
mtp_property_intrinsic = 1u << 7,
/** This method represents a runtime routine. */
mtp_property_runtime = 1u << 8,
/** All method invocations are known, the backend is free to optimize the
* call in any possible way. */
mtp_property_private = 1u << 9,
mtp_property_private = 1u << 8,
/** Set, if this method contains one possibly endless loop. */
mtp_property_has_loop = 1u << 10,
mtp_property_has_loop = 1u << 9,
/** try to always inline this function, even if it seems nonprofitable */
mtp_property_always_inline = 1u << 11,
mtp_property_always_inline = 1u << 10,
/** the function should not be inlined */
mtp_property_noinline = 1u << 12,
mtp_property_noinline = 1u << 11,
/** the programmer recommends to inline the function */
mtp_property_inline_recommended = 1u << 13,
mtp_property_inline_recommended = 1u << 12,
/** stupid hack used by opt_funccall... */
mtp_temporary = 1u << 14,
mtp_temporary = 1u << 13,
} mtp_additional_properties;
ENUM_BITSET(mtp_additional_properties)
......
......@@ -536,7 +536,6 @@ static void dump_entity_to_file_prefix(FILE *F, ir_entity *ent, const char *pref
if (mask & mtp_property_malloc) fputs("malloc_function, ", F);
if (mask & mtp_property_returns_twice) fputs("weak_function, ", F);
if (mask & mtp_property_intrinsic) fputs("intrinsic_function, ", F);
if (mask & mtp_property_runtime) fputs("runtime_function, ", F);
if (mask & mtp_property_private) fputs("private_function, ", F);
if (mask & mtp_property_has_loop) fputs("has_loop_function, ", F);
fputc('\n', F);
......@@ -772,8 +771,6 @@ void dump_type_to_file(FILE *F, ir_type *tp)
fputs(" returns_twice", F);
if (mtp & mtp_property_intrinsic)
fputs(" intrinsic", F);
if (mtp & mtp_property_runtime)
fputs(" runtime", F);
if (mtp & mtp_property_private)
fputs(" private", F);
if (mtp & mtp_property_has_loop)
......
......@@ -662,7 +662,6 @@ static inline_irg_env *alloc_inline_irg_env(void)
typedef struct walker_env {
inline_irg_env *x; /**< the inline environment */
char ignore_runtime; /**< the ignore runtime flag */
char ignore_callers; /**< if set, do change callers data */
} wenv_t;
......@@ -690,18 +689,6 @@ static void collect_calls2(ir_node *call, void *ctx)
if (code != iro_Call) return;
/* check, if it's a runtime call */
if (env->ignore_runtime) {
ir_node *symc = get_Call_ptr(call);
if (is_SymConst_addr_ent(symc)) {
ir_entity *ent = get_SymConst_entity(symc);
if (get_entity_additional_properties(ent) & mtp_property_runtime)
return;
}
}
/* collect all call nodes */
++x->n_call_nodes;
++x->n_call_nodes_orig;
......@@ -1272,7 +1259,6 @@ void inline_functions(unsigned maxsize, int inline_threshold,
set_irg_link(irgs[i], alloc_inline_irg_env());
/* Pre-compute information in temporary data structure. */
wenv.ignore_runtime = 0;
wenv.ignore_callers = 0;
for (i = 0; i < n_irgs; ++i) {
ir_graph *irg = irgs[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment