It seems redundant to store this information twice. None of the
locations where this bit is checks cares about the distinction.
This simplifies the code and avoids having to reason about two
different concepts of aliveness.
Paths
| Differential D43250
[WebAssembly] Unify concepts of disgarded and non-live input chunks. NFC. ClosedPublic Authored by sbc100 on Feb 13 2018, 11:29 AM.
Details Summary It seems redundant to store this information twice. None of the This simplifies the code and avoids having to reason about two
Diff Detail
Event TimelineHerald added subscribers: llvm-commits, sunfish, aheejin and 4 others. · View Herald TranscriptFeb 13 2018, 11:29 AM This revision is now accepted and ready to land.Feb 13 2018, 11:37 AM Closed by commit rL325046: [WebAssembly] Unify concepts of discarded and non-live input chunks. NFC. (authored by sbc). · Explain WhyFeb 13 2018, 12:31 PM Closed by commit rLLD325046: [WebAssembly] Unify concepts of discarded and non-live input chunks. NFC. (authored by sbc). · Explain Why This revision was automatically updated to reflect the committed changes. This revision was automatically updated to reflect the committed changes. Comment Actions Cool, looks like it should work. NB. Discarded/Live were distinguished based on the ELF and COFF implementations, so maybe we'll find a reason to bring the distinction back later - or maybe those can be simplified too, just to use the Live bit?
Revision Contents
Diff 134098 lld/trunk/wasm/InputChunks.h
lld/trunk/wasm/InputFiles.cpp
lld/trunk/wasm/Writer.cpp
|