pro64-support
[Top] [All Lists]

Re: unoptimized dead store

To: shinmingliu@xxxxxxxxx
Subject: Re: unoptimized dead store
From: Robert Kennedy <robert@xxxxxxxxxxxxx>
Date: Wed, 9 May 2001 14:07:47 -0700
Cc: stuart@xxxxxxxxx, pro64-support@xxxxxxxxxxx
In-reply-to: <20010509205613.27993.qmail@xxxxxxxxxxxxxxxxxxxxxx> (message from Shin-Ming Liu on Wed, 9 May 2001 13:56:13 -0700 (PDT))
References: <20010509205613.27993.qmail@xxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-pro64-support@xxxxxxxxxxx
> If the mod/ref analysis in IPA concludes the variable
> a is not modified in the function glarp, the optimizer
> could still conclude the value of "a++" and dead 
> code eliminate the store "a = 2".

Definitely true, but obviously that isn't happening in this
example. Like I said, I haven't analyzed it so I have no information
about why it isn't happening. The two main possibilities are that the
info from IPA is too conservative, or that the optimizer's overly
conservative vsym assignment is responsible (my first guess is that
the glarp call has a chi for the return vsym, and "a" also aliases
with the return vsym). If it is the latter possibility, it would take
fairly major changes to fix it.

        -- Robert


<Prev in Thread] Current Thread [Next in Thread>