[PATCH] Reset insn priority after inc/ref replacement in haifa sched

Robin Dapp rdapp@linux.ibm.com
Wed Oct 10 17:00:00 GMT 2018


Hi,

as my last message
(https://gcc.gnu.org/ml/gcc-patches/2018-10/msg00280.html) did not
garner much attention, I'm posting it in proper patch form this time.
The problem I'm trying to solve is that an insn's priority seems
unchanged if the priority of insns that depend on it is changed (and the
first insn's priority was computed by on of these dependent insns'
priority).  If I missed something or there is another way this should be
working, I'd like to learn about that.

A non-bootstrapped test suite run on s390 showed no regressions and an
x86 one is currently running (current HEAD didn't bootstrap for me on
x86). The actual code changes throughout SPEC2006 are minor and the
performance impact is negligible provided we do not hit a fixable bad
case as described in my last message.

Regards
 Robin

--

gcc/ChangeLog:

2018-10-10  Robin Dapp  <rdapp@linux.ibm.com>

        * haifa-sched.c (apply_replacement):
	Reset insn priority after inc/ref replacement.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-haifa-fix.diff
Type: text/x-patch
Size: 1017 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181010/8008e60c/attachment.bin>


More information about the Gcc-patches mailing list