Skip to content

VoidRep-related refactor

Krzysztof Gogolewski requested to merge wip/voidrep-refactor into master
  • In GHC.StgToByteCode, replace bcIdPrimId with idPrimRep, bcIdArgRep with idArgRep, atomPrimRep with stgArgRep1. All of them were duplicates.
  • In GHC.Stg.Unarise, we were converting a PrimRep to a Type and back to PrimRep. Remove the calls to primRepToType and typePrimRep1 which cancel out.
  • In GHC.Stg.Lint, GHC.StgToCmm, GHC.Types.RepType we were filtering out VoidRep from the result of typePrimRep. But typePrimRep never returns VoidRep - remove the filtering.

Another step towards #19520 (closed)

Merge request reports