From: Michael Beck Date: Fri, 8 May 2009 10:35:30 +0000 (+0000) Subject: - do not run node_is_in_irg_storage() in release mode, this seems to use a remarkable... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=2099b3a2cd4fbd2b8584e7316ce1406b771c0fc9;p=libfirm - do not run node_is_in_irg_storage() in release mode, this seems to use a remarkable amount of time [r25897] --- 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);