#4758 updated a bunch of GC-specific optimization passes to exit early if run on modules without GC enabled, but in the long run it might make more sense to add a mechanism to run those passes by default only on modules where they might be useful to avoid cluttering up the pass runner with useless passes.