- do not run node_is_in_irg_storage() in release mode, this seems to use a remarkable...
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 8 May 2009 10:35:30 +0000 (10:35 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 8 May 2009 10:35:30 +0000 (10:35 +0000)
[r25897]

ir/ir/irvrfy.c

index 0a4e8d4..c1b4666 100644 (file)
@@ -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);