Add -ddump-* flags for all Core optimisations
In the same vein as #22639 (closed), many Core passes lack an associated dump flag; the only way to see the dumps is by passing -dverbose-core2core
.
The passes I'm talking about are:
- FloatOut. Since the flag to activate it is called -ffull-laziness, -ddump-full-laziness makes sense. I suppose we can also have an alias for -ddump-float-out. Perhaps even add -ffloat-out, while we are at it?
- FloatIn -ddump-float-in
- StaticArgumentTransformation (although it isn't activated by default) -ddump-static-argument-transformation (oh boy)
- LiberateCase (-ddump-liberate-case)
- CallerCC (-ddump-caller-cc) Just because we have -ddump-late-cc. I don't know if that's necessary; perhaps @bgamari would know?