This reduces the number of lookups to one per COMDAT group, rather than one per symbol in a COMDAT group.
See D44343
Paths
| Differential D44344
[WebAssembly] Avoid COMDAT hashmap lookup for each symbol. NFC ClosedPublic Authored by ncw on Mar 9 2018, 5:23 PM.
Details Summary This reduces the number of lookups to one per COMDAT group, rather than one per symbol in a COMDAT group. See D44343
Diff Detail
Event TimelineHerald added subscribers: llvm-commits, sunfish, aheejin and 3 others. · View Herald TranscriptMar 9 2018, 5:23 PM Comment Actions I'm hoping this one can be approved too, since it goes along with D44343. Any objections? This revision is now accepted and ready to land.Mar 13 2018, 11:43 AM Closed by commit rL327523: [WebAssembly] Avoid COMDAT hashmap lookup for each symbol. NFC (authored by ncw). · Explain WhyMar 14 2018, 8:47 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 137879 wasm/InputChunks.h
wasm/InputChunks.cpp
wasm/InputFiles.h
wasm/InputFiles.cpp
wasm/SymbolTable.h
wasm/SymbolTable.cpp
wasm/Writer.cpp
|
I feel like it would be good to have some kind of wasm::kInvalidIndex that we could use here and elsewhere. But thats a separate change.