Skip to content

LSRA: Avoiding reg spill to memory when reg-value is consistent with memory #6761

@sivarv

Description

@sivarv

Say a local variable is allocated a reg loaded its value from memory. Say there were many uses of local variable in IR and afterwards local variable needs to be spilled due to register pressure. We can avoid writing reg back to memory if there are no intervening updates to reg on the path where it was loaded from memory to the point where it needs to be spilled.

category:cq
theme:register-allocator
skill-level:expert
cost:medium
impact:medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIenhancementProduct code improvement that does NOT require public API changes/additionsoptimizationtenet-performancePerformance related issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions