This was mentioned somewhere in the discussion about how to deal with --dump-corefn, etc. but the general ideal was the compiler could pick up the corefn and then perform JS codegen on it, so you could have something like:
purs compile --codegen corefn src/**/*.purs
-- custom corefn optimizer tool
purs codegen ...