Skip to content

Unused liveins are not killed #23

Open

Description

@martin-kjellin

Consider this MIR file (for Hexagon):

--- |
; ModuleID = (...)
...

name: minimal
body: |
bb.0:
liveins: %r2, %r4
exit
%0 = COPY %r4
%1 = COPY %r2

...

I would expect the liveins to get killed, since they are not really used in the function (and thus not really live), but they are not. Linting gives the following error messages:
allTemporariesUsed: t0:r2 is not used
allTemporariesUsed: t1:r4 is not used

If the COPY instructions are left out, things work as expected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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