Skip to content

regression on inferring inbounds for eachindex() #45507

@Moelf

Description

@Moelf
julia> function f(N)
           res = zeros(N)
           a = 1.1
           b = 2.2
           @inbounds for i in eachindex(res)
               res[i] = a*i + b*i
           end
           res
       end

the @inbounds makes about 2x performance different in 1.8 but seems to be fixed on master, it would be nice to find the fix and backport to 1.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler:codegenGeneration of LLVM IR and native codefixed on masterperformanceMust go fasterregressionRegression in behavior compared to a previous version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions