This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Constant folding and Constant propagation
Steven Bosscher wrote:
> On Fri, Feb 6, 2009 at 7:32 PM, Adam Nemet <anemet@caviumnetworks.com> wrote:
>> I think you really need the Joern's optmize_related_values patch. Also see
>> PR33699.
>
> I wouldn't recommend that patch, but yes: Something that performs that
> optimization ;-)
Yes, something doing that using LCM was on my list of "things to do
after fwprop to do what CSE currently does, but better". I never got
round to implementing it, I think. I had an LCM-based replacement for
canon_reg that I wanted to use as a basis, maybe I can dig it up.
Paolo