summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorabel <abel@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-24 05:57:02 +0000
committerabel <abel@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-24 05:57:02 +0000
commit91096e87f33c945b931481d37bd2094a05fd9b78 (patch)
tree4e4b38d31417de3db52142b6f3e4e5a802536d6d
parent2a9110cb500e6754c28864a6dfaed185b367516c (diff)
downloadgcc-91096e87f33c945b931481d37bd2094a05fd9b78.tar.gz
gcc/
2014-02-24 Andrey Belevantsev <abel@ispras.ru> PR rtl-optimization/60268 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable initialization to ... (sched_rgn_init): ... here. (schedule_region): Check for SCHED_PRESSURE_NONE earlier. testsuite/ 2014-02-24 Andrey Belevantsev <abel@ispras.ru> PR rtl-optimization/60268 * gcc.c-torture/compile/pr60268.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208066 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog11
-rw-r--r--gcc/sched-rgn.c8
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr60268.c6
4 files changed, 26 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 748805e620e..dd9415b76c7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,6 +1,15 @@
+2014-02-24 Andrey Belevantsev <abel@ispras.ru>
+
+ PR rtl-optimization/60268
+ * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
+ initialization to ...
+ (sched_rgn_init): ... here.
+ (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
+
2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
- * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg names
+ * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
+ names.
2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
diff --git a/gcc/sched-rgn.c b/gcc/sched-rgn.c
index 0573b6a6e8f..dc6fa16a19e 100644
--- a/gcc/sched-rgn.c
+++ b/gcc/sched-rgn.c
@@ -1067,7 +1067,6 @@ haifa_find_rgns (void)
BLOCK_TO_BB (bb->index) = 0;
}
- nr_regions_initial = nr_regions;
free (max_hdr);
free (degree);
free (stack);
@@ -2997,10 +2996,10 @@ schedule_region (int rgn)
/* Do not support register pressure sensitive scheduling for the new regions
as we don't update the liveness info for them. */
- if (rgn >= nr_regions_initial)
+ if (sched_pressure != SCHED_PRESSURE_NONE
+ && rgn >= nr_regions_initial)
{
- if (sched_pressure != SCHED_PRESSURE_NONE)
- free_global_sched_pressure_data ();
+ free_global_sched_pressure_data ();
sched_pressure = SCHED_PRESSURE_NONE;
}
@@ -3166,6 +3165,7 @@ sched_rgn_init (bool single_blocks_p)
RGN_BLOCKS (nr_regions) = (RGN_BLOCKS (nr_regions - 1) +
RGN_NR_BLOCKS (nr_regions - 1));
+ nr_regions_initial = nr_regions;
}
/* Free data structures for region scheduling. */
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index f3c0c851c0f..e60f3826768 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,6 +1,11 @@
+2014-02-24 Andrey Belevantsev <abel@ispras.ru>
+
+ PR rtl-optimization/60268
+ * gcc.c-torture/compile/pr60268.c: New test.
+
2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
- * gcc/testsuite/gcc.target/microblaze/others/mem_reload.c: New test.
+ * gcc.target/microblaze/others/mem_reload.c: New test.
2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr60268.c b/gcc/testsuite/gcc.c-torture/compile/pr60268.c
new file mode 100644
index 00000000000..c3a6f941914
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr60268.c
@@ -0,0 +1,6 @@
+/* { dg-options "-flive-range-shrinkage" } */
+void f()
+{
+ int i = 0;
+ void *p = 0;
+}