-
Notifications
You must be signed in to change notification settings - Fork 28
[AIEX] Detach Loads from address chaining #577
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
[AIEX] Detach Loads from address chaining #577
Conversation
9cc7eeb
to
a721d3b
Compare
llvm/test/CodeGen/AIE/GlobalISel/cluster-base-address-multi-mbbs.mir
Outdated
Show resolved
Hide resolved
44f82c6
to
a31b4b4
Compare
Rebasing to remove conflicts of #646 |
ae128ab
to
73349a0
Compare
if (!isPhiNeeded(MBB)) { | ||
// Incoming values to MBB are equal, no Phi needed. | ||
const Register IncomingReg = | ||
CurrentChainRegBlockMap.getNewReg((*MBB.pred_begin())); |
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.
Nit: Spurious pair of parentheses
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 guess IncomingReg is related to the incoming value that is tracked by isPhiNeeded(). Perhaps rename it to getUniquePhiValue?
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 have no blocking issues. I will approve when you have finalized it.
73349a0
to
b7b69f3
Compare
b7b69f3
to
87ad3a9
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.
LGTM.
Detach loads from address chain, so that they can be scheduled as early as possible and do not delay branch decision.