hadrian: Perf flavour is only -O1 by default
As https://gitlab.haskell.org/ghc/ghc/blob/master/hadrian/doc/flavours.md lists and Settings.Flavours.Performance
suggests, the hsDefault
SourceArgs
field is only -O -H64m
and doesn't have a special case for stage1+, where the default flavour has -O2 -H32m
in Settings.Default
.
I'm not exactly sure where that makes a difference. Can it affect the built GHC in that it will be slower than in default
flavour? If so, we should consider adding -O2
there, too.
And I also wonder why the default build uses -H32m
while the perf build uses -H64m
. How is one better than the other? And if e.g. -H64m
really is better than the other, why aren't we it throughout?