Commit 63c55e52 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

sparc: Remove strange check for mode_is_data() from peephole_sparc_RestoreZero().

In particular do not stop the search for a suitable node, when a non-mode_is_data() node is encountered.
parent aedcfbd3
......@@ -508,11 +508,8 @@ static void peephole_sparc_RestoreZero(ir_node *node)
if (arch_get_irn_n_outs(schedpoint) == 0)
continue;
if (!mode_is_data(get_irn_mode(schedpoint)))
return;
arch_register_t const *const reg = arch_get_irn_register(schedpoint);
if (!is_restorezeroopt_reg(reg))
arch_register_t const *const reg = arch_get_irn_register_out(schedpoint, 0);
if (!reg || !is_restorezeroopt_reg(reg))
continue;
if (be_is_Copy(schedpoint) && can_move_down(schedpoint, node)) {
......
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