Re: rearranging code invalidates liveness info

cliffc@noel.cs.rice.edu (Cliff Click)
Thu, 16 Jun 1994 15:17:56 GMT

          From comp.compilers

Related articles
rearranging code invalidates liveness info fjh@munta.cs.mu.OZ.AU (1994-06-10)
Re: rearranging code invalidates liveness info preston@noel.cs.rice.edu (1994-06-13)
Re: rearranging code invalidates liveness info cliffc@noel.cs.rice.edu (1994-06-13)
rearranging code invalidates liveness info ssimmons@convex.com (1994-06-13)
Re: rearranging code invalidates liveness info newburn@aslan.ece.cmu.edu (1994-06-13)
Re: rearranging code invalidates liveness info mernst@research.microsoft.com (1994-06-15)
Re: rearranging code invalidates liveness info hbaker@netcom.com (1994-06-16)
Re: rearranging code invalidates liveness info cliffc@noel.cs.rice.edu (1994-06-16)
Re: rearranging code invalidates liveness info daniel@quilty.stanford.edu (1994-06-21)
| List of all articles for this month |

Newsgroups: comp.compilers
From: cliffc@noel.cs.rice.edu (Cliff Click)
Keywords: optimize
Organization: Rice University, Houston, Texas
References: 94-06-070 94-06-091
Date: Thu, 16 Jun 1994 15:17:56 GMT

Fergus Henderson <fjh@munta.cs.mu.OZ.AU> asks:
> anything but the most trivial rearrangements will invalidate the annotations
> on the code. ... How do compiler writers usually handle this problem?


mernst@research.microsoft.com writes:
|> ... At the other end of the spectrum (requiring much
|> more work and potentially saving more effort) is incremental maintenance of
|> semantic information, either directly or by rerunning analyses over a small
|> affected region in which the semantic information has been invalidated.


Warning: making a small change CAN result in the "affected region" being the
whole program. "Optimistic" analyses (such as constant propagation) suffer
this in particular. I can write a program such that making a small edit
(edit is size delta) up front will change the constants for the whole program
(solution change is size N). Worse, I can do this such that the solution
barely changes, but you are required to check the whole program to verify
correctness (i.e., edit is size delta, solution change is size delta, but
runtime to maintain correctness is size N). The incremental-analysis guys
are working on a *hard* problem.


--
cliffc@cs.rice.edu -- Massively Scalar Compiler Group, Rice University
--


Post a followup to this message

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