[PATCH]Construct canonical scaled address expression in IVOPT

Richard Earnshaw rearnsha@arm.com
Tue Sep 24 10:46:00 GMT 2013


On 24/09/13 11:12, Richard Biener wrote:
> Or even [reg*scale] (not sure about that).  But yes, at least reg*scale + offset
> and reg*scale + reg.

I can't conceive of a realistic case where one would want to scale the
base address.  Scaling the offset is fine, but never the base.  So
reg*scale+offset seems meaningless.

Base + Offset * Scale on the other hand makes much more sense.

Of course, this is all about terminology, so if you regard an immediate,
such as a symbol as an offset, then perhaps you have something close to
the original term, but I think then you've inverted things, since your
symbol is really the base, not the offset.

R.



More information about the Gcc-patches mailing list