Skip to content

[CodeGen][NPM] Port MachineBlockPlacementStats to NPM #129853

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

Merged
merged 2 commits into from
Apr 17, 2025

Conversation

optimisan
Copy link
Contributor

No description provided.

@optimisan optimisan marked this pull request as ready for review March 5, 2025 09:08
@optimisan optimisan force-pushed the users/optimisan/03-05-port-machine-block-placement branch from 316c784 to 4ce9005 Compare March 11, 2025 06:28
@optimisan optimisan force-pushed the users/optimisan/05-03-port-mblock-placement-stats branch from a01bc11 to 4a2d253 Compare March 11, 2025 06:36
@optimisan optimisan force-pushed the users/optimisan/03-05-port-machine-block-placement branch from 4ce9005 to e18d4c2 Compare March 11, 2025 06:41
@optimisan optimisan force-pushed the users/optimisan/05-03-port-mblock-placement-stats branch from 4a2d253 to 10ddc68 Compare March 11, 2025 06:48
@optimisan optimisan force-pushed the users/optimisan/05-03-port-mblock-placement-stats branch from 10ddc68 to a960e88 Compare March 12, 2025 05:50
public:
PreservedAnalyses run(MachineFunction &MF,
MachineFunctionAnalysisManager &MFAM);
static bool isRequired() { return true; }
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems like this should not be required for analyse

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This keeps it consistent with the legacy pass not skipping optnone functions

Copy link
Contributor

Choose a reason for hiding this comment

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

This pass just updates statistics? It certainly shouldn't be considered required. It pre-checks isFunctionInPrintList. Should the PM be directly managing this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The pass instrumentation checks for isFunctionInPrintList but it is independent of the Statistic object.
optnone is also separate from isFunctionInPrintList, so I think this should be not skipped

@arsenm arsenm requested a review from aeubanks March 13, 2025 05:54
Base automatically changed from users/optimisan/03-05-port-machine-block-placement to main March 14, 2025 05:01
@optimisan optimisan force-pushed the users/optimisan/05-03-port-mblock-placement-stats branch from a960e88 to ffc6bed Compare March 17, 2025 06:21
@optimisan optimisan force-pushed the users/optimisan/05-03-port-mblock-placement-stats branch from ffc6bed to 434625b Compare April 17, 2025 04:43
@optimisan optimisan merged commit a09fd9c into main Apr 17, 2025
9 of 11 checks passed
@optimisan optimisan deleted the users/optimisan/05-03-port-mblock-placement-stats branch April 17, 2025 09:54
var-const pushed a commit to ldionne/llvm-project that referenced this pull request Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants