[Git][ghc/ghc][wip/T18570] 3 commits: Calculate multiplicity for record selector functions