Commit 2099b3a2 authored by Michael Beck's avatar Michael Beck
Browse files

- do not run node_is_in_irg_storage() in release mode, this seems to use a...

- do not run node_is_in_irg_storage() in release mode, this seems to use a remarkable amount of time

[r25897]
parent 1b8b9508
......@@ -1932,11 +1932,16 @@ int irn_vrfy_irg(ir_node *n, ir_graph *irg) {
* do NOT check placement in interprocedural view, as we don't always know
* the "right" graph ...
*/
#ifndef NDEBUG
/* this seems to be an expensive check in VS compile (9% over all runtime),
so do NOT run it in release mode */
ASSERT_AND_RET_DBG(
node_is_in_irgs_storage(irg, n),
"Node is not stored on proper IR graph!", 0,
show_node_on_graph(irg, n);
);
#endif
assert(get_irn_irg(n) == irg);
{
unsigned idx = get_irn_idx(n);
......
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