public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/5] RFC, WIP: RTL cost improvements
@ 2017-08-01  0:15 Segher Boessenkool
  2017-08-01  0:05 ` [PATCH 2/5] Replace insn_rtx_cost with insn_cost and pattern_cost Segher Boessenkool
                   ` (6 more replies)
  0 siblings, 7 replies; 24+ messages in thread
From: Segher Boessenkool @ 2017-08-01  0:15 UTC (permalink / raw)
  To: gcc-patches; +Cc: Segher Boessenkool

This series creates pattern_cost and insn_cost functions that together
replace the existing insn_rtx_cost function.

pattern_cost is like the old insn_rtx_cost function; insn_cost takes
an actual rtx_insn * as input, not just a pattern.

Also a targetm.insn_cost is added, which targets can use to implement
a more exact cost more easily.

The combine patch is pretty gross (but functional), it needs some
refactoring (to not call recog so often).  The rs6000 patch is very
much a work in progress.

How does this look?  Is this the right direction?


Segher


Segher Boessenkool (5):
  Rename existing insn_cost to insn_sched_cost
  Replace insn_rtx_cost with insn_cost and pattern_cost
  combine: Use insn_cost instead of pattern_cost everywhere
  Add targetm.insn_cost hook
  rs6000: Implement insn_cost hook

 gcc/cfgrtl.c               |  7 +++----
 gcc/combine.c              | 40 +++++++++++++++++++++++++++++-----------
 gcc/config/rs6000/rs6000.c | 14 ++++++++++++++
 gcc/doc/tm.texi            | 12 ++++++++++++
 gcc/doc/tm.texi.in         |  2 ++
 gcc/dse.c                  |  2 +-
 gcc/haifa-sched.c          | 14 +++++++-------
 gcc/ifcvt.c                | 12 ++++++------
 gcc/rtl.h                  |  3 ++-
 gcc/rtlanal.c              | 16 ++++++++++++++--
 gcc/sched-int.h            |  2 +-
 gcc/sched-rgn.c            |  4 ++--
 gcc/sel-sched-ir.c         |  2 +-
 gcc/target.def             | 14 ++++++++++++++
 14 files changed, 108 insertions(+), 36 deletions(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2017-08-10  6:39 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-01  0:15 [PATCH 0/5] RFC, WIP: RTL cost improvements Segher Boessenkool
2017-08-01  0:05 ` [PATCH 2/5] Replace insn_rtx_cost with insn_cost and pattern_cost Segher Boessenkool
2017-08-02 16:38   ` Jeff Law
2017-08-01  0:05 ` [PATCH 3/5] combine: Use insn_cost instead of pattern_cost everywhere Segher Boessenkool
2017-08-02 16:40   ` Jeff Law
2017-08-02 21:23     ` Segher Boessenkool
2017-08-01  0:05 ` [PATCH 4/5] Add targetm.insn_cost hook Segher Boessenkool
2017-08-02 16:39   ` Jeff Law
2017-08-01  0:15 ` [PATCH 1/5] Rename existing insn_cost to insn_sched_cost Segher Boessenkool
2017-08-02 16:36   ` Jeff Law
2017-08-01  0:15 ` [PATCH 5/5] rs6000: Implement insn_cost hook Segher Boessenkool
2017-08-01  9:07 ` [PATCH 0/5] RFC, WIP: RTL cost improvements Richard Biener
2017-08-05 10:07 ` Richard Sandiford
2017-08-05 17:15   ` Segher Boessenkool
2017-08-08 16:41     ` Jeff Law
2017-08-08 16:55       ` Richard Sandiford
2017-08-09 15:56         ` Jeff Law
2017-08-09 16:19           ` Richard Sandiford
2017-08-09 16:40           ` Segher Boessenkool
2017-08-09 16:54             ` Richard Sandiford
2017-08-09 17:12               ` Segher Boessenkool
2017-08-09 18:18                 ` Segher Boessenkool
2017-08-10  7:18                 ` Richard Sandiford
2017-08-09 16:57       ` Segher Boessenkool

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).