Re: the Evil Effects of Inlining

pardo@june.cs.washington.edu (David Keppel)
Sun, 5 May 91 22:40:15 GMT

          From comp.compilers

Related articles
[3 earlier articles]
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: <1991May2.180508.17100@rice.edu> <DANIEL.91May3093720@quilty.Stanford.EDU> <1991May3.222452.16446@beaver.cs.washington.edu>
Date: Sun, 5 May 91 22:40:15 GMT

Ooops. I wrote something very unclear:


>Preston Briggs writes:
>>[Register allocators aren't as smart as bind save/restore at
>> the call site.]


pardo@june.cs.washington.edu (David Keppel) writes:
>[Technique...] 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.).


Gee, it sounds like I'm saying that a function call is the worst of all
possible worlds, when I was talking about avoiding the function call.
What I *meant* to say (I really did re-read it, but it made sense at
the time) was that if you:


* Do register saves and restores in the caller like you were doing a
    function call
* Do register allocation in the callee like it was a real function
* Inline the function


then you can:


* Use the same register allocation strategy and get no worse register
    allocation
* Remove redundant register saves and restores
* Remove redundant branches


Hopefully it make sense this time.


;-D on ( Confusion reigns supreme ) Pardo
--


Post a followup to this message

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