Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused liveins are not killed #23

Open
martin-kjellin opened this issue Oct 2, 2017 · 0 comments
Open

Unused liveins are not killed #23

martin-kjellin opened this issue Oct 2, 2017 · 0 comments

Comments

@martin-kjellin
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant