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^2 patches - bootstrap failure


"Ulrich Weigand" <weigand@i1.informatik.uni-erlangen.de> writes:

>> It is not clear to me why the change in this patch enables the
>> optimization only for non-paradoxical subregs.  Could you please
>> clarify?
>
> Maybe it's seen most clearly by looking at the full expressions
> before and after the patch:
...
> The overall effect is simply that the test GET_CODE (SUBREG_REG (op0)) == REG
> is moved from the outer if, where it affects both the paraxocical and the
> non-paradoxical case, to a location inside the first inner if, where it
> affects only the paradoxical case.
>
> This means that the optimization in the paradoxical case is done only
> for REG subregs, as before, while in the non-paradoxical case it is
> now done for both REG and MEM subregs.

Okay, I get it now, thanks for explaining.  (I did look at the code
but it didn't fit together without your explanation.)  The patch is
OK, then.

zw


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