Commit ee249c09 by Richard Kenner

(reload): Fix error in last change; compute MODE before it's used.

From-SVN: r6862
parent ec7a1dd2
......@@ -1142,11 +1142,17 @@ reload (first, global, dumpfile)
new_basic_block_needs = 1;
}
mode = reload_inmode[i];
if (GET_MODE_SIZE (reload_outmode[i]) > GET_MODE_SIZE (mode))
mode = reload_outmode[i];
size = CLASS_MAX_NREGS (class, mode);
/* If this class doesn't want a group determine if
we have a nongroup need or a regular need. */
nongroup_need = 0;
if (CLASS_MAX_NREGS (class, mode) == 1)
if (size == 1)
for (j = i + 1; j < n_reloads; j++)
if (reloads_conflict (i, j)
&& reg_classes_intersect_p (class,
......@@ -1234,10 +1240,6 @@ reload (first, global, dumpfile)
break;
}
mode = reload_inmode[i];
if (GET_MODE_SIZE (reload_outmode[i]) > GET_MODE_SIZE (mode))
mode = reload_outmode[i];
size = CLASS_MAX_NREGS (class, mode);
if (size > 1)
{
enum machine_mode other_mode, allocate_mode;
......
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