Re: the Evil Effects of Inlining

pardo@june.cs.washington.edu (David Keppel)
Fri, 3 May 91 22:24:52 GMT

          From comp.compilers

Related articles
the Evil Effects of Inlining preston@ariel.rice.edu (1991-05-02)
Re: the Evil Effects of Inlining ressler@cs.cornell.edu (1991-05-03)
Re: the Evil Effects of Inlining daniel@quilty.Stanford.EDU (1991-05-03)
Re: the Evil Effects of Inlining gateley@rice.edu (1991-05-03)
Re: the Evil Effects of Inlining boehm@parc.xerox.com (1991-05-03)
Re: the Evil Effects of Inlining mac@eleazar.dartmouth.edu (1991-05-03)
Re: the Evil Effects of Inlining pardo@june.cs.washington.edu (1991-05-03)
Re: the Evil Effects of Inlining compres!chris@crackers.clearpoint.com (1991-05-04)
Re: the Evil Effects of Inlining carter@cs.wisc.edu (1991-05-05)
Re: the Evil Effects of Inlining pardo@june.cs.washington.edu (1991-05-05)
Re: the Evil Effects of Inlining ea08+@andrew.cmu.edu (Eric A. Anderson) (1991-05-06)
Re: the Evil Effects of Inlining mcg@ichips.intel.com (1991-05-06)
| List of all articles for this month |

Newsgroups: comp.compilers
From: pardo@june.cs.washington.edu (David Keppel)
Keywords: optimize, design
Organization: Computer Science & Engineering, U. of Washington, Seattle
References: <1991May1.035622.25021@daffy.cs.wisc.edu> <1991May2.180508.17100@rice.edu> <DANIEL.91May3093720@quilty.Stanford.EDU>
Date: Fri, 3 May 91 22:24:52 GMT

>Preston Briggs writes:
>>[Some reasons why you might not want to inline]
> REGISTER PRESSURE:
> Call sites are natural places to spill lots of registers.
> Register allocators are rarely able to achieve the same efficiency.


daniel@quilty.Stanford.EDU (Daniel Weise) writes:
>[So we have to make better register allocators.]


Stronger than that: if the call site is the right place to save/restore
registers, then save and restore registers at the call site, around the
inlined function. Then delete any redundant (useless) saves and
restores.


On the basis of register pressure, you couldn't possibly do worse than
a function call. You might still suffer all the other side effects
(code growth, etc.).


;-D on ( It's all caching ) Pardo
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.