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

[PowerPC] make LR/LR8 CTR/CTR8 aliased #76926

Merged
merged 1 commit into from Jan 8, 2024

Conversation

chenzheng1030
Copy link
Collaborator

@chenzheng1030 chenzheng1030 commented Jan 4, 2024

fixes #47156
fixes #47155

@@ -270,12 +270,15 @@ def CR7 : CR<7, "cr7", [CR7LT, CR7GT, CR7EQ, CR7UN]>, DwarfRegNum<[75, 75]>;

// Link register
def LR : SPR<8, "lr">, DwarfRegNum<[-2, 65]>;
//let Aliases = [LR] in
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know why it was commented out?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see 44dbdbe5cf5e

I guess it is because Aliases was not a member of Register at that time.

@chenzheng1030 chenzheng1030 requested review from ahatanak and removed request for ahatanak January 5, 2024 00:49
Copy link
Collaborator

@bzEq bzEq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks reasonable to me. LR is not a subreg of LR8, however they do overlap. Same reason to CTR and CTR8.

@chenzheng1030 chenzheng1030 merged commit d6aef86 into llvm:main Jan 8, 2024
4 checks passed
@chenzheng1030 chenzheng1030 deleted the issue47155_47166 branch January 8, 2024 01:37
justinfargnoli pushed a commit to justinfargnoli/llvm-project that referenced this pull request Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants