From: Michael Beck Date: Wed, 6 Oct 2004 08:19:07 +0000 (+0000) Subject: Added CSE debug option X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=7cffdfb8d6704b3f896074934b1a5f835c4fdf4b;p=libfirm Added CSE debug option [r4057] --- diff --git a/ir/ir/iropt_dbg.h b/ir/ir/iropt_dbg.h index 11983b92a..d71d66d41 100644 --- a/ir/ir/iropt_dbg.h +++ b/ir/ir/iropt_dbg.h @@ -158,3 +158,12 @@ stat_merge_nodes(&n, 1, ons, SIZ(ons), STAT_OPT_ID); \ __dbg_info_merge_sets(&n, 1, ons, SIZ(ons), dbg_opt_auxnode); \ } while(0) + +#define DBG_OPT_CSE(oldn, n) \ + do { \ + ir_node *ons[2]; \ + ons[0] = oldn; \ + ons[1] = n; \ + stat_merge_nodes(&n, 1, ons, SIZ(ons), STAT_OPT_CSE); \ + __dbg_info_merge_sets(&n, 1, ons, SIZ(ons), dbg_opt_cse); \ + } while(0)