]> Joshua Wise's Git repositories - snipe.git/blame - optimize/feckful.sml
Initial import of l5c
[snipe.git] / optimize / feckful.sml
CommitLineData
5c79bb68
JW
1structure FeckfulnessAnalysis :> OPTIMIZATION =
2struct
3 structure T = Tree
4 structure TU = TreeUtils
5
6 fun feckstm (a as T.EFFECT e) =
7 if (TU.effect e)
8 then [a]
9 else []
10 | feckstm a = [a]
11
12 val optimizer = { shortname = "feckfulness", description = "Removes simple side effect statements that have no effect", func = Optimizer.IRSTM feckstm }
13end
This page took 0.023233 seconds and 4 git commands to generate.