#include "irnode_t.h"
#include "ircons_t.h"
-#define get_dom_info(bl) (&(bl)->attr.block.dom)
+#define get_dom_info(bl) (&(bl)->attr.block.dom)
/*--------------------------------------------------------------------*/
/** Accessing the dominator data structures **/
{
const dom_info *ai, *bi;
- assert(is_Block(a) && is_Block(b));
- ai = get_dom_info(a);
- bi = get_dom_info(b);
- return bi->tree_pre_num - ai->tree_pre_num
- <= ai->max_subtree_pre_num - ai->tree_pre_num;
+ if (is_Block(a) && is_Block(b)) {
+ ai = get_dom_info(a);
+ bi = get_dom_info(b);
+ return bi->tree_pre_num - ai->tree_pre_num
+ <= ai->max_subtree_pre_num - ai->tree_pre_num;
+ }
+
+ return 0;
}
ir_node *get_Block_dominated_first(const ir_node *bl)