aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Bindings/Python/IRModule.h
diff options
context:
space:
mode:
authorMichael Maitland <michaeltmaitland@gmail.com>2025-01-24 09:08:34 -0500
committerGitHub <noreply@github.com>2025-01-24 09:08:34 -0500
commite5e55c04d6af4ae32c99d574f59e632595abf607 (patch)
treed6468062bb9c0e8fe08df8a791c68d93ec68946a /mlir/lib/Bindings/Python/IRModule.h
parent970094d50b08e694c2302f7ee39b1c33d08f2405 (diff)
downloadllvm-e5e55c04d6af4ae32c99d574f59e632595abf607.zip
llvm-e5e55c04d6af4ae32c99d574f59e632595abf607.tar.gz
llvm-e5e55c04d6af4ae32c99d574f59e632595abf607.tar.bz2
[GlobalMerge][NFC] Skip sorting by profitability when it is not needed (#124146)
We were previously sorting by profitability even if we were choosing to merge all globals together, which is not impacted by UsedGlobalSet order. We can also remove iteration of UsedGlobalSets in reverse order in both cases. In the first csae, the order does not matter. In the second case, we just sort by the order we need instead of sorting in the opposite direction and calling reverse. This change should only be an improvement on compile time. I have not measured it, but I think it would never make things worse.
Diffstat (limited to 'mlir/lib/Bindings/Python/IRModule.h')
0 files changed, 0 insertions, 0 deletions