[all-commits] [llvm/llvm-project] 79012f: [LowerTypeTests] Optimize buildBitSet (#157386)
Vitaly Buka via All-commits
all-commits at lists.llvm.org
Wed Sep 10 18:17:19 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 79012fcfd333040e517f82e235d114c3bc960a99
https://github.com/llvm/llvm-project/commit/79012fcfd333040e517f82e235d114c3bc960a99
Author: Vitaly Buka <vitalybuka at google.com>
Date: 2025-09-10 (Wed, 10 Sep 2025)
Changed paths:
M llvm/include/llvm/Transforms/IPO/LowerTypeTests.h
M llvm/lib/Transforms/IPO/LowerTypeTests.cpp
M llvm/unittests/Transforms/IPO/LowerTypeTests.cpp
Log Message:
-----------
[LowerTypeTests] Optimize buildBitSet (#157386)
`buildBitSet` had a loop trough entire GlobalLayout to pickup matching
offsets.
The patch maps all offsets to correspondign
`TypeId`, so we pass prepared list of offsets into
`buildBitSet`.
On one large internal binary, `LowerTypeTests`
took 58% of ThinLTO link time before the patch.
After the patch just 7% (absolute saving is 200s).
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list