Skip to content

[Struct Opt] A structure array accesses its member variables, the base address of the structure array is recalculated each time #112830

Open
@LiqinWeng

Description

@LiqinWeng

Test case from spec2006 sjen, pls see this link: https://godbolt.org/z/hbnKz33r6

I debugged it and found that the main reason was that the alias analysis (TBAA) between the numb_move variable and MustNotAliasInsts (storeInst in the figure below) resulted in MayAlias, making it impossible to optimize.
image

I haven't thought of a better solution yet. Does anyone have any ideas?:)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions