hw-doloop: Use rtx_insn (touches config/bfin/bfin.c)
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 22 Aug 2014 17:05:45 +0000 (17:05 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Fri, 22 Aug 2014 17:05:45 +0000 (17:05 +0000)
commitda76d746a2652ecac3576986c206d2809333f1b4
treeae7c1364d7c43b17d18ffa127700f450ad7298b3
parent2d7d7f0fe49688f097720cd921ae65921034cd59
hw-doloop: Use rtx_insn (touches config/bfin/bfin.c)

gcc/
* hw-doloop.h (struct hwloop_info_d): Strengthen fields
"last_insn", "loop_end" from rtx to rtx_insn *.

* hw-doloop.c (scan_loop): Likewise for local "insn".
(discover_loop): Likewise for param "tail_insn".
(discover_loops): Likewise for local "tail".

* config/bfin/bfin.c (hwloop_optimize): For now, add a checked
cast to rtx_insn * when assigning from an rtx local to a
hwloop_info's "last_insn" field.

From-SVN: r214334
gcc/ChangeLog
gcc/config/bfin/bfin.c
gcc/hw-doloop.c
gcc/hw-doloop.h