Skip to content

[Question] Is there any code that make sure there is no Register Spilling before creating Register based types? #182

Description

@AnDongLi

I'm reading the code to get better understanding of internal logic of TK.
For shared memory based types there is "shared" in code to ensure the instance of that type gets its memory from shared memory;
There is no such keyword for register based types and when there is register pressure it is possible for a compiler to spill local variables to local memory which will make the assumption of register based type false.
I wonder if there is some code to make sure register based types are only created when knowing it won't cause register pressure.
Or we just pay the price when this happen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions