X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Flibfirm%2Firopt_dbg.h;h=a504c1dd3c3aec306e745bb582069b823e9220a7;hb=f7a0dee11313faad6f2ff54edc8eaadabd03e433;hp=f91a5ffa8fb4b94af893c3ef2ea64014d6c1b673;hpb=5588af9b459a2f8bd6a024019a3467a0d47b29bf;p=libfirm diff --git a/include/libfirm/iropt_dbg.h b/include/libfirm/iropt_dbg.h index f91a5ffa8..a504c1dd3 100644 --- a/include/libfirm/iropt_dbg.h +++ b/include/libfirm/iropt_dbg.h @@ -390,4 +390,30 @@ hook_merge_nodes(NULL, 0, &n, 1, HOOK_OPT_CONFIRM_E); \ } while(0) +/** + * Merge the debug info due to a GVN-PRE result. + * + * @param oldn the old node + * @param n the new node replacing oldn + * @param flag firm statistics option + */ +#define DBG_OPT_GVN_PRE(oldn, n, flag) \ + do { \ + hook_merge_nodes(&n, 1, &oldn, 1, flag); \ + __dbg_info_merge_pair(n, oldn, dbg_gvn_pre); \ + } while(0) + +/** + * Merge the debug info due to a combo result. + * + * @param oldn the old node + * @param n the new node replacing oldn + * @param flag firm statistics option + */ +#define DBG_OPT_COMBO(oldn, n, flag) \ + do { \ + hook_merge_nodes(&n, 1, &oldn, 1, flag); \ + __dbg_info_merge_pair(n, oldn, dbg_combo); \ + } while(0) + #endif