-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[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
[CodeGen][NPM] Port MachineBlockPlacementStats to NPM #129853
Conversation
316c784 to
4ce9005
Compare
a01bc11 to
4a2d253
Compare
4ce9005 to
e18d4c2
Compare
4a2d253 to
10ddc68
Compare
10ddc68 to
a960e88
Compare
| public: | ||
| PreservedAnalyses run(MachineFunction &MF, | ||
| MachineFunctionAnalysisManager &MFAM); | ||
| static bool isRequired() { return true; } |
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.
It seems like this should not be required for analyse
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.
This keeps it consistent with the legacy pass not skipping optnone functions
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.
This pass just updates statistics? It certainly shouldn't be considered required. It pre-checks isFunctionInPrintList. Should the PM be directly managing this case?
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.
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
a960e88 to
ffc6bed
Compare
ffc6bed to
434625b
Compare

No description provided.