Symbol's NameSize is computed lazily. Currently, when we replace a symbol,
a cached length value can be discarded. This patch propagates that value.
Details
Details
- Reviewers
MaskRay • espindola - Commits
- rZORG58af63678fea: Copy symbol length when we replace a symbol.
rG58af63678fea: Copy symbol length when we replace a symbol.
rGecf6eb515fcc: Copy symbol length when we replace a symbol.
rLLD361364: Copy symbol length when we replace a symbol.
rL361364: Copy symbol length when we replace a symbol.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 32280 Build 32279: arc lint + arc unit
Event Timeline
Comment Actions
It is definitely a win at least for local symbols. For local symbols, we store pointers to the beginning of symbol names, but oftentime we ended up not having to compute their sizes.