Skip to content

Conversation

F-Stuckmann
Copy link
Collaborator

@F-Stuckmann F-Stuckmann commented Jul 28, 2025

Detach loads from address chain, so that they can be scheduled as early as possible and do not delay branch decision.

@F-Stuckmann F-Stuckmann force-pushed the stuckmann.multi.block.address.clustering branch 3 times, most recently from 9cc7eeb to a721d3b Compare July 31, 2025 19:33
@F-Stuckmann
Copy link
Collaborator Author

Rebasing to remove conflicts of #646

@F-Stuckmann F-Stuckmann force-pushed the stuckmann.multi.block.address.clustering branch 3 times, most recently from ae128ab to 73349a0 Compare September 17, 2025 09:12
if (!isPhiNeeded(MBB)) {
// Incoming values to MBB are equal, no Phi needed.
const Register IncomingReg =
CurrentChainRegBlockMap.getNewReg((*MBB.pred_begin()));
Copy link
Collaborator

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

Copy link
Collaborator

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?

Copy link
Collaborator

@martien-de-jong martien-de-jong left a 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.

@F-Stuckmann F-Stuckmann force-pushed the stuckmann.multi.block.address.clustering branch from 73349a0 to b7b69f3 Compare September 19, 2025 09:12
@F-Stuckmann
Copy link
Collaborator Author

Due to no improvements in pointer restoring, it has been dropped.
The results for the conditional load detaching:

Final QoR
Performance -0.05%
Core_Compute_Insn_Count

Program Memory -0.5 Bytes
Core_PMSize_absolute

Stack no change
Core_StackSize_absolute

@F-Stuckmann F-Stuckmann changed the title Allow Address Chaining if Ptr is used in multiple MBBs [AIEX] Detach Loads from address chaining Sep 19, 2025
@F-Stuckmann F-Stuckmann force-pushed the stuckmann.multi.block.address.clustering branch from b7b69f3 to 87ad3a9 Compare September 19, 2025 10:07
@F-Stuckmann F-Stuckmann enabled auto-merge (rebase) September 19, 2025 10:25
Copy link
Collaborator

@andcarminati andcarminati left a comment

Choose a reason for hiding this comment

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

LGTM.

@F-Stuckmann F-Stuckmann merged commit 088d67a into aie-public Sep 19, 2025
7 checks passed
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.

3 participants