added new macros for Confirm based optimization
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 21 Jun 2005 14:57:11 +0000 (14:57 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 21 Jun 2005 14:57:11 +0000 (14:57 +0000)
[r6076]

ir/ir/iropt_dbg.h

index 92d4d33..75373ec 100644 (file)
     __dbg_info_merge_pair(n, oldn, dbg_rem_poly_call);          \
   } while(0)
 
+/**
+ * a node was replaced by another node due to a Confirm
+ */
 #define DBG_OPT_CONFIRM(oldn, n)                                \
   do {                                                          \
     hook_merge_nodes(&n, 1, &oldn, 1, HOOK_OPT_CONFIRM);        \
+    __dbg_info_merge_pair(n, oldn, dbg_opt_confirm);            \
+  } while(0)
+
+/**
+ * a node was replaced by a constant due to a Confim
+ */
+#define DBG_OPT_CONFIRM_C(oldn, c)                              \
+  do {                                                          \
+    hook_merge_nodes(&c, 1, &oldn, 1, HOOK_OPT_CONFIRM_C);      \
+    __dbg_info_merge_pair(c, oldn, dbg_opt_confirm);            \
+  } while(0)
+
+/**
+ * a node could be evalueted due to a Confirm
+ */
+#define DBG_EVAL_CONFIRM(oldn)                                  \
+  do {                                                          \
+    hook_merge_nodes(NULL, 0, &oldn, 1, HOOK_OPT_CONFIRM_E);    \
   } while(0)
 
 #endif /* _IROPT_DBG_H_ */