diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-04-29 16:12:44 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-04-29 16:12:44 +0200 |
commit | 6990cd0531dedfb241d136988d4530cc2b1dbe9d (patch) | |
tree | 50b74a7dac4fb0ab73496682f081f010dec58d83 | |
parent | 3c5fd8675af36966ba2e26dd7ed7ea2a73bef27f (diff) |
Schedule.m: Add TODO and correct variable declaration
-rw-r--r-- | Tools/CodeGen/Schedule.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/CodeGen/Schedule.m b/Tools/CodeGen/Schedule.m index cb172a0..b9985bb 100644 --- a/Tools/CodeGen/Schedule.m +++ b/Tools/CodeGen/Schedule.m @@ -60,12 +60,14 @@ groupsSetInCalc[calc_, groups_] := ]; groupsReadInCalc[calc_, groups_] := - Module[{gfs, eqs, lhss, gfsInLHS, lhsGroupNames}, + Module[{gfs, eqs, lhss, gfsInLHS, rhsGroupNames}, gfs = allGroupVariables[groups]; eqs = lookup[calc, Equations]; rhss = Map[Last, eqs]; gfsInRHS = Union[Cases[rhss, _ ? (MemberQ[gfs,#] &), Infinity]]; rhsGroupNames = containingGroups[gfsInRHS, groups]; + (* TODO: eliminate variables from this list that have been set in + this calculation before they were used *) Return[rhsGroupNames] ]; |