Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!genrad!decvax!yale-com!bj
From: bj@yale-com.UUCP
Newsgroups: net.unix-wizards,net.lang.c
Subject: Re: Some questions about the C -Optimiser
Message-ID: <1614@yale-com.UUCP>
Date: Mon, 13-Jun-83 16:23:55 EDT
Article-I.D.: yale-com.1614
Posted: Mon Jun 13 16:23:55 1983
Date-Received: Tue, 14-Jun-83 19:22:13 EDT
Lines: 14


    (This  is  a  reply  to mckusic's (sp?)  answer about not optimizing r0
    references.)  Suggestion:    change  the  optimizer  to  go  ahead  and
    optimize  if  the  r0  instructions  are  followed by anything except a
    'ret'.  The C compiler will only generate an r0 instruction  that  also
    includes the return value before a return(e), correct?

This could cause problems in cases like
	return ( e ? a = b+1 : c = d+1 )

This problem is caused because the optimizer only has the code, it does
not know the intent of statements.  This is also the reason that device
driver code can not be optimized.
						B.J.