[llvm] Add a pass to collect dropped var statistics for MIR (PR #126686)
Shubham Sandeep Rastogi via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 11 13:03:56 PST 2025
================
@@ -91,7 +96,15 @@ bool MachineFunctionPass::runOnFunction(Function &F) {
MFProps.reset(ClearedProperties);
- bool RV = runOnMachineFunction(MF);
+ bool RV;
+ if (DroppedVarStatsMIR) {
+ auto PassName = getPassName();
+ DroppedVarStatsMF.runBeforePass(PassName, &MF);
+ RV = runOnMachineFunction(MF);
+ DroppedVarStatsMF.runAfterPass(PassName, &MF);
----------------
rastogishubham wrote:
https://llvm-compile-time-tracker.com/compare.php?from=5e59fa57d29e159f41957958ba541049f85652d6&to=94f4cf922deb8997ff10525b58432cf2eab8bee2&stat=instructions:u
It is down to 0.04%
https://github.com/llvm/llvm-project/pull/126686
More information about the llvm-commits
mailing list