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

Begin implementing intra-basic block liveness analysis #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MarkMcCaskey
Copy link
Owner

This code is exposing a bug in the live-in checking, which suggests that the core algorithm may be implemented incorrectly. This'll take some solid debugging and investigation to figure out.

This PR adds the logic for checking when registers stop being used within a single basic block so that registers can be used more efficiently (i.e. A = A + 1 doesn't need a new register each time).

When commenting out the !live_in register freeing on basic block entry, the code miscompiles and the loop only executes once instead of 4 times. This is surprising as the live-in register freeing is more of an optimization than a hard requirement (when we lack register pressure at least)... This is suggestive of another bug in the code added by this PR

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

Successfully merging this pull request may close these issues.

1 participant