aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-08-26 19:52:49 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-26 19:52:49 +0000
commit40a243d452c913fd0ac58ad39968d7993689967b (patch)
treebdce7f60f7f815372bc0ef4c80f35602b3d417cf /gcc
parent5d34b05026b5af531e8cecc4bc70a76a0d23093d (diff)
downloadgcc-40a243d452c913fd0ac58ad39968d7993689967b.zip
gcc-40a243d452c913fd0ac58ad39968d7993689967b.tar.gz
gcc-40a243d452c913fd0ac58ad39968d7993689967b.tar.bz2
Use rtx_insn in more places in haifa-sched.c
gcc/ 2014-08-26 David Malcolm <dmalcolm@redhat.com> * haifa-sched.c (struct model_insn_info): Strengthen field "insn" from rtx to rtx_insn *. (model_add_to_schedule): Likewise for locals "start", "end", "iter". From-SVN: r214545
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/haifa-sched.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a1c7898..6827711 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,12 @@
2014-08-26 David Malcolm <dmalcolm@redhat.com>
+ * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
+ from rtx to rtx_insn *.
+ (model_add_to_schedule): Likewise for locals "start", "end",
+ "iter".
+
+2014-08-26 David Malcolm <dmalcolm@redhat.com>
+
* rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
rtx_insn *.
* cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 54691a3..d9f3d79 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -1815,7 +1815,7 @@ struct model_pressure_data {
than the main schedule. */
struct model_insn_info {
/* The instruction itself. */
- rtx insn;
+ rtx_insn *insn;
/* If this instruction is in model_worklist, these fields link to the
previous (higher-priority) and next (lower-priority) instructions
@@ -3351,7 +3351,7 @@ model_add_to_schedule (rtx insn)
static void
model_analyze_insns (void)
{
- rtx start, end, iter;
+ rtx_insn *start, *end, *iter;
sd_iterator_def sd_it;
dep_t dep;
struct model_insn_info *insn, *con;