Hacker News new | ask | show | jobs
by CalChris 3399 days ago
You would think that AOT would be the right time to remove dead code.
1 comments

Only if it can be fully determined at compile time.

For example a debug flag can depend on a command line parameter, but it will be used to initialize a constant variable.

So the code can be shipped with both versions, and the JIT will just remove the unused branches.