#5173: Implement forward substitution of constants in the Cmm mini-inliner
---------------------------------+------------------------------------------
Reporter: tibbe | Owner:
Type: bug | Status: patch
Priority: normal | Component: Compiler
Version: 7.0.3 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by tibbe):
Here are the nofib results:
{{{
Min -0.0% -0.0% -2.0% -2.0% -2.4%
Max +0.0% +0.1% +0.4% +0.8% +0.7%
Geometric Mean -0.0% +0.0% -0.3% -0.2% -0.0%
}}}
A tiny decrease in runtime and allocation which is probably just noise.
Note that I added this optimization in order to enable other
optimizations, that depend on calls at the Cmm level have constant
arguments whenever possible, so the lack of any improvements on nofib
isn't a problem.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5173#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs