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 PR44955]: Strip off the real and imagine part in gathering memory references for prefetching


Hi,

> Attached is a patch that fixes bug 44955: over-prefetched for array of complex numbers.
> 
> Current prefetch pass inserts prefetches for the real part and imagine part of a complex array
> separately, and thus over-prefetched. The reason is that they have different bases and go to
> different groups, and reuse analysis could not be performed across groups.
> 
> The attached patch strip off the REALPART_EXPR and IMAGPART_EXPR with an adjustment
> of the offset for the IMAGPART_EXPR. As a result, the related two references could have the same
> base and fall into the same group. For the test case in bug 44955, prefetches are generated only
> for the real parts after applying the patch.
> 
> Ptached passed bootstrapping.
> 
> Is it OK for the trunk?

yes.

Zdenek


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