[llvm-commits] [PATCH] Multidimensional Array Index Delinearization Analysis

Preston Briggs preston.briggs at gmail.com
Mon Oct 21 14:55:00 PDT 2013


Thanks Sebastian. I'll work on the review.

Preston



On Mon, Oct 21, 2013 at 2:49 PM, Sebastian Pop <spop at codeaurora.org> wrote:

> Hi,
>
> Andrew Trick wrote:
> >
> > On Oct 10, 2013, at 11:43 AM, Sebastian Pop <spop at codeaurora.org> wrote:
> > > Probably an easier way would be to implement an ad-hoc pattern
> matching to
> > > figure out whether Step occurs in each operand of Start, and that
> would also
> > > give me a simple way to compute the remainder in case it does not
> divide one of
> > > the operands.
> > >
> > > Let me know what would be the best to implement.
> >
> > Sure. Sameer pointed out in this thread that the general problem is one
> of
> > finding a GCD of the start and step. But in this situation there's
> nothing
> > wrong with pattern matching common cases.
>
> Thanks Andy for your guidance on this.  Attached is the delinearization
> implemented on top of SCEV analysis with pattern matching implementation
> of gcd
> and div.  I have added all testcases from the original patch of Hal (also
> attached for reference) all these testcases pass with no regressions (with
> respect to Hal's implementation.)
>
> I have also integrated the delinearization in Preston's dependence
> analysis.  I
> have updated the test-suite with what is now recognized as dependences
> with the
> -da-delinearize flag turned on.  Preston, could you please review these
> changes,
> I am not sure I agree with all these changes to the test-suite, and that
> means
> we will have to adjust either the delinearization or the dependence
> analysis
> pass.
>
> Thanks for reviewing the two attached patches (Hal's patch is provided for
> reference purposes only),
>
> Sebastian
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
> hosted by The Linux Foundation
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131021/a2fcb6eb/attachment.html>


More information about the llvm-commits mailing list