public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch][ping #2] Fix PR80929: Realistic PARALLEL cost in seq_cost.
@ 2017-06-18 19:40 Georg-Johann Lay
  0 siblings, 0 replies; only message in thread
From: Georg-Johann Lay @ 2017-06-18 19:40 UTC (permalink / raw)
  To: gcc-patches

Ping #2

https://gcc.gnu.org/ml/gcc-patches/2017-06/msg00096.html

On 02.06.2017 09:53, Georg-Johann Lay wrote:
 > Hi,
 >
 > this small addition improves costs of PARALLELs in
 > rtlanal.c:seq_cost().  Up to now, these costs are
 > assumed to be 1 which gives gross inexact costs for,
 > e.g. divmod which is represented as PARALLEL.
 >
 > The patch just forwards cost computation to insn_rtx_cost
 > which uses the cost of the 1st SET (if any) and otherwise
 > assign costs of 1 insn.
 >
 > Bootstrapped & regtested on x86_64.
 >
 > Moreover, it fixed the division by constant on avr where
 > the problem popped up since PR79665.
 >
 > Ok to install?
 >
 > Johann
 >
 > gcc/
 >     PR middle-end/80929
 >     * rtlanal.c (seq_cost) [PARALLEL]: Get cost from insn_rtx_cost
 >     instead of assuming cost of 1.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-18 19:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-18 19:40 [patch][ping #2] Fix PR80929: Realistic PARALLEL cost in seq_cost Georg-Johann Lay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).