Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Consider using phi nodes instead of pointers to represent mutable variables #1097

Open
@bettinaheim

Description

@bettinaheim

Right now, we use a pointer to store and load the current value for variables in QIR when they are declared as mutable in Q#. I believe we should be able to make this proper SSA by using phi nodes instead. We should properly consider that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: code gen (QIR)QIR code generationenhancementNew request or suggestion for an improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions