re PR rtl-optimization/28726 (-fsched2-use-superblock produces wrong code)
authorEric Botcazou <ebotcazou@libertysurf.fr>
Mon, 11 Sep 2006 19:28:11 +0000 (21:28 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 11 Sep 2006 19:28:11 +0000 (19:28 +0000)
commit2e9182fd4afeef974ac3a3404701f81f7e9c556f
tree74dbbe65149d2c089f7ca72ba460cd78dd473966
parentc2b448c6553891317dfd1849d0019639b64ab3ee
re PR rtl-optimization/28726 (-fsched2-use-superblock produces wrong code)

PR rtl-optimization/28726
* sched-deps.c (sched_analyze_reg): New function extracted from...
(sched_analyze_1): ...here.  Call it to analyze references to
registers.  Treat again writes to a stack register as writing to the
register.
(sched_analyze_2): ...and here.  Call it to analyze references to
registers.  Treat again reads of a stack register as reading the
register.

From-SVN: r116855
gcc/ChangeLog
gcc/sched-deps.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr28726.c [new file with mode: 0644]