4 ms·
Please mainstream this in general. It would save a decent amount of RAM if it became a standard part of LLVM and would probably improve overall performance due
by api 5y ago
Please mainstream this in general. It would save a decent amount of RAM if it became a standard part of LLVM and would probably improve overall performance due to cache effects. Dead code sitting in RAM would be bad for cache locality.
- mhh__ 5y agoIt could save ram but presumably if applied wrong you could waste ram by having multiple copies of the code. So you'd probably want to profile guide this.
- api 5y agoDead code removal and deduplication are orthogonal aren't they? You can already turn off verbosity increasing things with -Os etc.
- astrange 5y agoPGO already solves that if you can do hot/cold splitting, though I don't think that pass in LLVM is very maintained.