Skip to content

JIT: strength reduce _LOAD_FAST{_BORROW} to _LOAD_CONST_INLINE_BORROW #143117

@Fidget-Spinner

Description

@Fidget-Spinner

Feature or enhancement

Proposal:

The following code is common in some benchmarks, such as raytrace

x = 1
y = x

In raytrace, it happens in the form of the arguments being passed to the points.

We can strength reduce the y = x from a LOAD_FAST to a LOAD_CONST_INLINE_BORROW which is significantly faster in the JIT, as it eliminates a memory load from the heap.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-JITtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions