modmask
A small LLVM-based tool that prints the source code locations of functions unreachable from main, letting developers safely delete dead code without altering functionality; it was used to remove about 3000 lines of code in minutes.
What it addresses
Identifying unreachable code so unused functionality can be removed safely without altering behavior.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
modmask
A small LLVM-based tool that prints the source code locations of functions unreachable from main, letting developers safely delete dead code without altering functionality; it was used to remove about 3000 lines of code in minutes.
Problem: Identifying unreachable code so unused functionality can be removed safely without altering behavior.
Posted by @FattiMei · Original comment ↗
“For the task of removing functionality I developed a small tool based on LLVM that prints the source code location of functions that are unreachable from main, so that I can safely remove them without altering functionality, deleted ~3000 LOC in a couple of minutes[2]”