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

Description

It eliminates instances of common subexpressions.

Implementation

common-subexp.sig 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:


Last edited on 2007-08-23 03:59:21 by MatthewFluet.
Actions: AttachFile, Delete, Edit, Info, Rename Preferences