perf: let modules without constants share both views

Modules loaded only for their IR are not exported, which made the root of the private tree count as containing a dropped module. They declare no constants, so they are now treated as kept, and the public view shares the private tree outright when every module with constants is exported.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 file changed