Commit 1f01879e by Jan Hubicka Committed by Jan Hubicka

* regclass.c (regclass): Do not use flowgraph when not optimizing.

From-SVN: r30993
parent 833fc3ad
Fri Dec 17 12:08:11 MET 1999 Jan Hubicka <hubicka@freesoftr.cz>
* regclass.c (regclass): Do not use flowgraph when not optimizing.
* gcse.c (try_replace_reg): Do replacements in REG_EQUAL/REG_EQUIV
notes too, create one when replacement failed, attempt to simplify
resulting notes.
......
......@@ -1070,11 +1070,16 @@ regclass (f, nregs, dump)
bzero (in_inc_dec, nregs);
#endif
loop_cost = 1;
/* Scan the instructions and record each time it would
save code to put a certain register in a certain class. */
if (!optimize)
{
loop_cost = 1;
for (insn = f; insn; insn = NEXT_INSN (insn))
insn = scan_one_insn (insn, pass);
}
else
for (index = 0; index < n_basic_blocks; index++)
{
basic_block bb = BASIC_BLOCK (index);
......
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