added DBG_OPT_ALGSIM0() macro
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 24 Feb 2005 14:56:36 +0000 (14:56 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 24 Feb 2005 14:56:36 +0000 (14:56 +0000)
[r5239]

ir/ir/iropt_dbg.h

index 7f0926b..9fa3028 100644 (file)
 /**
  * Merge the debug info due to an algebraic_simplification
  */
-#define DBG_OPT_CSTEVAL(oldn, n)                                       \
+#define DBG_OPT_CSTEVAL(oldn, n)                                  \
   do {                                                                 \
-         hook_merge_nodes(&n, 1, &oldn, 1, HOOK_OPT_CONST_EVAL);       \
+         hook_merge_nodes(&n, 1, &oldn, 1, HOOK_OPT_CONST_EVAL);         \
           __dbg_info_merge_pair(n, oldn, dbg_const_eval);              \
   } while(0)
 
-#define DBG_OPT_ALGSIM1(oldn, a, b, n)                                \
-  do {                                                                \
+#define DBG_OPT_ALGSIM0(oldn, n)                                  \
+  do {                                                            \
+    hook_merge_nodes(&n, 1, &oldn, 1, HOOK_OPT_ALGSIM);              \
+    __dbg_info_merge_pair(n, oldn, dbg_algebraic_simplification); \
+  } while(0)
+
+#define DBG_OPT_ALGSIM1(oldn, a, b, n)                          \
+  do {                                                          \
          ir_node *ons[3];                                            \
          ons[0] = oldn;                                              \
          ons[1] = a;                                                 \