This is the mail archive of the gcc-patches@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: Unreviewed patch^3


On Mon, May 09, 2005 at 10:05:25AM +0200, Andreas Krebbel wrote:
> http://gcc.gnu.org/ml/gcc-patches/2005-04/msg00659.html

The big if block at the front replicates much of the code that
follows it.  Since offset is only accumulated, it doesn't seem
that you'd lose anything by moving that adjustment later and
not duplicating code.

More seriously,

!       /* Do not combine registers if they overlap.  */
!       || (ureg - offset <= sreg && ureg + usize > sreg + MIN (offset, 0))
!       || (ureg - offset >= sreg && ureg - MAX (offset, 0) < sreg + ssize)

Comparisons of ureg and sreg like this make no sense if they are
pseudo register numbers.  What's wrong with the original offset check?



r~


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