-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Add a pass to collect dropped var stats for MIR #120780
Conversation
This patch uses the DroppedVariableStats class to add dropped variable statistics for MIR passes. Reland 1c082c9
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 should've moved DroppedVariableStats stuff out of llvm/Passes in advance.
At a glance, they don't depend on LLVMPass any more. (#120711)
#define LLVM_CODEGEN_DROPPEDVARIABLESTATSMIR_H | ||
|
||
#include "llvm/CodeGen/MachineFunction.h" | ||
#include "llvm/Passes/DroppedVariableStats.h" |
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's odd to depend on LLVMPasses here.
This reverts commit 3bf91ad. (llvmorg-20-init-16123-g3bf91ad2a9c7) `llvm/CodeGen` should not depend on `llvm/Passes`.
I have reverted this. I could fix them though. |
I have already commented on this three times... #115566 (comment) ...and my feedback still hasn't been addressed. If you reapply this again without actually addressing the problems with this patch, I will request your commit access to be withdrawn. |
@nikic I am very sorry about not addressing the patch issues, I will make sure to not include so much code into MachineFunctionPass.h. I had applied some aggressive filtering in my email and didn't see those comments, but I understand it is not an excuse. Do you have some recommendations on how to redesign this better to make it so that the build times are smaller? |
@chapuni The reason I designed it this way, is because if I move all the With this error:
This is because libclang/codegen doesn't link against libllvm/codegen however, it does link against libllvm/passes. If I cannot have libllvm/codegen not link against passes, then I am unsure of where I can put the code so that I can calculate dropped statistics for both IR and MIR. Do you have an idea of what could be done? |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/146/builds/1904 Here is the relevant piece of the build log for the reference
|
This patch uses the DroppedVariableStats class to add dropped variable statistics for MIR passes.
Reland 1c082c9