-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[CodeGen] Extract copy-paste on PHI MachineInstr income removal. #158634
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
[CodeGen] Extract copy-paste on PHI MachineInstr income removal. #158634
Conversation
Inspired by comment: #158265 (comment) I suggest, if llvm already has |
✅ With the latest revision this PR passed the C/C++ code formatter. |
8800fae
to
0310776
Compare
Hi, @arsenm Could you please review the PR? If it is ok, could you please merge it, I do not have commit access to the project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also just put this directly into MachineInstr (or alternatively, into MachineBasicBlock and have it handle all phis in the block)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks!
0310776
to
e1a30e7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant a method, MachineBasicBlock::removePHIIncomingValuesForPredecessor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see.
Updated.
e1a30e7
to
984ecf3
Compare
Ping. Any update, please? I'm fully ok to close MR without merge if it is useless. |
Thank you! |
No description provided.