Skip to content

中端优化:全局变量局部化。 #124

Description

@Fuyuky

如果一个全局变量 a 仅在主函数中被使用,则在主函数开头加入语句:

%a = alloc 4

然后将所有 load @a 的结果换成 %a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions