Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teach @polly to simplify range-based loops on AST-level #17965

Commits on Oct 28, 2016
  1. Teach @polly to simplify range-based loops on AST-level

    MatthiasJReisinger committed Jun 28, 2016
    `@polly` now rewrites loops that iterate over `Base.UnitRange` or
    `Base.StepRange` to use the newly introduced `Polly.UnitRange` or
    `Polly.StepRange` instead. These loops will be lowered to LLVM IR
    where the loop bounds are more obvious to Polly's underlying
    analyses than when using the `Base` ranges.
    
    However, the new ranges might actually result in code that's slightly
    less efficient than for `Base` ranges.  This is the reason why for
    now we use the new ranges only in code parts that are touched by Polly
    and where possible slowdowns would therefore be able to be compensated
    by Polly's optimizations.
    
    The described additions are available in the new file base/polly.jl
    where we also moved the `@polly` macro definition.
    
    According discussions on this issue also took place in
    https://groups.google.com/forum/#!topic/julia-dev/5io1KnEswqs and
    https://groups.google.com/forum/#!topic/julia-dev/6LZaSnGCqno
You can’t perform that action at this time.