This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Pre_dec and Post_inc insns


Hello,

> > What are the potentials areas where they could create problems if
> > they are generated before the flow pass?
> 
> I just found out, the hard way, that cse is one such area.  It simply
> doesn't notice changes caused by autoinc modifiers, and it may also
> replace pseudos that are marked as equivalent to constants, and then
> reload barfs.
> 
> Unfortunately, cse may also turn increments that flow could turn into
> autoinc addressing modes into computations of a base register plus a
> constant, which flow then can't handle.

there actually is some horrible condition in cse to prevent this, with
the effect that chains of additions sometimes are not csed.  IMO the
right solution is to make autoinc creating pass smarter (long on my TODO
list, but unfortunately there are way too many other things above it).

Zdenek


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]