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: [PATCH GCC]Catch more MEM_REFs sharing common addressing part in gimple strength reduction



On Tue, 2013-09-10 at 15:41 +0800, bin.cheng wrote:
> On Mon, Sep 9, 2013 at 11:35 PM, Bill Schmidt <wschmidt@linux.vnet.ibm.com> wrote:
> >
> >> > I rely on size_binop to convert T2 into sizetype, because T2' may be in other kind of type.  Otherwise there will be ssa_verify error later.
> >>
> >> OK, I see now.  I had thought this was handled by fold_build2, but
> >> apparently not.  I guess all T2's formerly handled were already sizetype
> >> as expected.  Thanks for the explanation!
> >
> > So, wouldn't it suffice to change t2 to fold_convert (sizetype, t2) in
> > the argument list to fold_build2?  It's picking nits, but that would be
> > slightly more efficient.
> 
> Hi Bill,
> 
> This is the 2nd version of patch with your comments incorporated.
> Bootstrap and re-test on x86.  Re-test on ARM ongoing.  Is it ok if tests pass?

Looks good to me!  Thanks, Bin.

Bill

> 
> Thanks.
> bin


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