VoidRep-related refactor
* 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.
Showing
- compiler/GHC/Stg/Lint.hs 3 additions, 4 deletionscompiler/GHC/Stg/Lint.hs
- compiler/GHC/Stg/Unarise.hs 7 additions, 10 deletionscompiler/GHC/Stg/Unarise.hs
- compiler/GHC/StgToByteCode.hs 15 additions, 34 deletionscompiler/GHC/StgToByteCode.hs
- compiler/GHC/StgToCmm.hs 1 addition, 1 deletioncompiler/GHC/StgToCmm.hs
- compiler/GHC/StgToCmm/Layout.hs 6 additions, 11 deletionscompiler/GHC/StgToCmm/Layout.hs
- compiler/GHC/StgToCmm/Ticky.hs 4 additions, 4 deletionscompiler/GHC/StgToCmm/Ticky.hs
- compiler/GHC/Types/Id/Make.hs 2 additions, 3 deletionscompiler/GHC/Types/Id/Make.hs
- compiler/GHC/Types/RepType.hs 10 additions, 13 deletionscompiler/GHC/Types/RepType.hs
Loading
Please register or sign in to comment