MLton 20051202 CommonSubexp
Home  Index  
CommonSubexp is an optimization pass for the SSA IntermediateLanguage, invoked from SSASimplify.

Description

It eliminates instances of common subexpressions.

Implementation

[WWW]common-subexp.sig [WWW]common-subexp.fun

Details and Notes

In addition to getting the usual sorts of things like

it also gets things like

Arith transfers are handled specially. The result of an Arith transfer can be used in common Arith transfers that it dominates:

are (l + n) and (l + m).


Last edited on 2005-11-30 23:34:09 by StephenWeeks.