]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
(refs #7042) Added a new compiler optimization (eta-reduce) 34/334/1
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Mon, 20 Feb 2017 09:17:31 +0000 (11:17 +0200)
committerHannu Niemistö <hannu.niemisto@semantum.fi>
Mon, 20 Feb 2017 09:17:31 +0000 (11:17 +0200)
Adds new optimization to SCL compiler that transforms the following code
    \someParameters = f someOtherParameters someParameters'
to
    f someOtherParameters
with the following restrictions:
* someParameters and someParameters' are lists of equal variables
  or the type is ()
* someOtherParameters does not refer to variables in someParameters
  or the lambda expression itself or something depending on it
  recursively

[PRIVATE-13082]

Change-Id: I0e666771c72128ab73b0e46af727236ba4811080


No differences found