VoidRep-related refactor
- In
GHC.StgToByteCode
, replacebcIdPrimId
withidPrimRep
,bcIdArgRep
withidArgRep
,atomPrimRep
withstgArgRep1
. All of them were duplicates. - In
GHC.Stg.Unarise
, we were converting aPrimRep
to aType
and back toPrimRep
. Remove the calls toprimRepToType
andtypePrimRep1
which cancel out. - In
GHC.Stg.Lint
,GHC.StgToCmm
,GHC.Types.RepType
we were filtering outVoidRep
from the result oftypePrimRep
. ButtypePrimRep
never returnsVoidRep
- remove the filtering.
Another step towards #19520 (closed)