Commit e86278d8 authored by yb9976's avatar yb9976
Browse files

Removed wrong assertion.

This fixes opt/reassoc031.c.
parent 925ba0a8
......@@ -956,7 +956,9 @@ static void walk_equality(ir_node *node, void *env)
ir_node *a = get_binop_left(l);
ir_node *b = get_binop_right(l);
assert(a != b);
if (a == b) {
if (is_Const(b)) {
replace_until_other_user(r, a, b, need_not, true);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment