From 2099b3a2cd4fbd2b8584e7316ce1406b771c0fc9 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 8 May 2009 10:35:30 +0000 Subject: [PATCH] - do not run node_is_in_irg_storage() in release mode, this seems to use a remarkable amount of time [r25897] --- ir/ir/irvrfy.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ir/ir/irvrfy.c b/ir/ir/irvrfy.c index 0a4e8d4a0..c1b4666a9 100644 --- a/ir/ir/irvrfy.c +++ b/ir/ir/irvrfy.c @@ -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); -- 2.20.1