StgToJS: Simplify ExprInline constructor of ExprResult
Its payload was used only for a small optimization in genAlts, avoiding a few assignments for programs of this form: case NormalDataCon arg1 arg2 of x { NormalDataCon x1 x2 -> ... ; } But when compiling with optimizations, this sort of code is generally eliminated by case-of-known-constructor in Core-to-Core. So it doesn't seem worth tracking and cleaning up again in StgToJS.
Showing
- compiler/GHC/StgToJS/Apply.hs 6 additions, 6 deletionscompiler/GHC/StgToJS/Apply.hs
- compiler/GHC/StgToJS/Expr.hs 13 additions, 26 deletionscompiler/GHC/StgToJS/Expr.hs
- compiler/GHC/StgToJS/FFI.hs 3 additions, 3 deletionscompiler/GHC/StgToJS/FFI.hs
- compiler/GHC/StgToJS/Types.hs 1 addition, 1 deletioncompiler/GHC/StgToJS/Types.hs
Loading
Please register or sign in to comment