Reset insn priority after inc/ref replacement
authorRobin Dapp <rdapp@linux.ibm.com>
Fri, 19 Oct 2018 06:25:30 +0000 (06:25 +0000)
committerRobin Dapp <rdapp@gcc.gnu.org>
Fri, 19 Oct 2018 06:25:30 +0000 (06:25 +0000)
commit079c81d010e3303c8fdbc4669bf3907fe7a37052
tree62a104b46c142a0806e88524cf3af84a78d8c3e5
parente75883a503330846f7a76bc6610513fd10a45cf4
Reset insn priority after inc/ref replacement

This patch recomputes the insn priority when a replacement for one of its
dependent insns is applied.

gcc/ChangeLog:

* haifa-sched.c (priority): Add force_recompute parameter.
(apply_replacement): Call priority () with force_recompute = true.
(restore_pattern): Likewise.

From-SVN: r265304
gcc/ChangeLog
gcc/haifa-sched.c