Commit cbbeabaa authored by Matthias Braun's avatar Matthias Braun
Browse files

iropt: make sure we don't miss Ors in is_Eor_Add

parent 6c4cc157
......@@ -74,10 +74,10 @@ static bool is_Or_Eor_Add(const ir_node *node)
* same result. */
static bool is_Eor_Add(const ir_node *node)
{
if (!is_Eor(node) && !is_Add(node))
return false;
if (is_Or_Eor_Add(node))
return true;
if (!is_Eor(node) && !is_Add(node))
return false;
const ir_node *right = get_binop_right(node);
if (!is_Const(right))
......
Markdown is supported
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