* @param oldn the node
* @param n the new lea
*/
-#define DBG_OPT_LEA1(oldn, n) \
+#define DBG_OPT_LEA1(oldn, n) \
do { \
hook_merge_nodes(&n, 1, &oldn, 1, FS_BE_IA32_LEA); \
__dbg_info_merge_pair(n, oldn, dbg_backend); \
} while(0)
+/**
+ * Merge the debug info due to a LEA creation.
+ *
+ * @param oldn the node
+ * @param n the new lea
+ */
+#define DBG_OPT_LEA1(oldn, n) \
+ do { \
+ hook_merge_nodes(&n, 1, &oldn, 1, FS_BE_IA32_LEA); \
+ __dbg_info_merge_pair(n, oldn, dbg_backend); \
+ } while(0)
/**
* Merge the debug info due to a LEA creation.
__dbg_info_merge_sets(&n, 1, ons, SIZ(ons), dbg_backend); \
} while(0)
+/**
+ * A CJmp was created to save a cmp
+ *
+ * @param oldn the old node
+ */
+#define DBG_OPT_CJMP(oldn) \
+ do { \
+ hook_merge_nodes(NULL, 0, &oldn, 1, FS_BE_IA32_CJMP); \
+ } while(0)
+
+
#endif /* _IA32_DBG_STAT_H_ */