mirror of git://gcc.gnu.org/git/gcc.git
recog.c (search_ofs): New static variable moved from...
* recog.c (search_ofs): New static variable moved from... (peep2_find_free_register): ...here. (peephole2_optimize): Initialize it. From-SVN: r204050
This commit is contained in:
parent
24ebcbc867
commit
e86a8146c7
|
|
@ -1,7 +1,12 @@
|
||||||
|
2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
|
* recog.c (search_ofs): New static variable moved from...
|
||||||
|
(peep2_find_free_register): ...here.
|
||||||
|
(peephole2_optimize): Initialize it.
|
||||||
|
|
||||||
2013-10-25 Tobias Burnus <burnus@net-b.de>
|
2013-10-25 Tobias Burnus <burnus@net-b.de>
|
||||||
|
|
||||||
* doc/invoke.texi (fopenmp): Change supported OpenMP version
|
* doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
|
||||||
to 4.0.
|
|
||||||
|
|
||||||
2013-10-25 Uros Bizjak <ubizjak@gmail.com>
|
2013-10-25 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3069,6 +3069,9 @@ peep2_reg_dead_p (int ofs, rtx reg)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Regno offset to be used in the register search. */
|
||||||
|
static int search_ofs;
|
||||||
|
|
||||||
/* Try to find a hard register of mode MODE, matching the register class in
|
/* Try to find a hard register of mode MODE, matching the register class in
|
||||||
CLASS_STR, which is available at the beginning of insn CURRENT_INSN and
|
CLASS_STR, which is available at the beginning of insn CURRENT_INSN and
|
||||||
remains available until the end of LAST_INSN. LAST_INSN may be NULL_RTX,
|
remains available until the end of LAST_INSN. LAST_INSN may be NULL_RTX,
|
||||||
|
|
@ -3084,7 +3087,6 @@ rtx
|
||||||
peep2_find_free_register (int from, int to, const char *class_str,
|
peep2_find_free_register (int from, int to, const char *class_str,
|
||||||
enum machine_mode mode, HARD_REG_SET *reg_set)
|
enum machine_mode mode, HARD_REG_SET *reg_set)
|
||||||
{
|
{
|
||||||
static int search_ofs;
|
|
||||||
enum reg_class cl;
|
enum reg_class cl;
|
||||||
HARD_REG_SET live;
|
HARD_REG_SET live;
|
||||||
df_ref *def_rec;
|
df_ref *def_rec;
|
||||||
|
|
@ -3549,6 +3551,7 @@ peephole2_optimize (void)
|
||||||
/* Initialize the regsets we're going to use. */
|
/* Initialize the regsets we're going to use. */
|
||||||
for (i = 0; i < MAX_INSNS_PER_PEEP2 + 1; ++i)
|
for (i = 0; i < MAX_INSNS_PER_PEEP2 + 1; ++i)
|
||||||
peep2_insn_data[i].live_before = BITMAP_ALLOC (®_obstack);
|
peep2_insn_data[i].live_before = BITMAP_ALLOC (®_obstack);
|
||||||
|
search_ofs = 0;
|
||||||
live = BITMAP_ALLOC (®_obstack);
|
live = BITMAP_ALLOC (®_obstack);
|
||||||
|
|
||||||
FOR_EACH_BB_REVERSE (bb)
|
FOR_EACH_BB_REVERSE (bb)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue