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

Description

It eliminates equivalent blocks in a SSA function. The equivalence criteria requires blocks to have no arguments or statements and transfer via Raise, Return, or Goto of a single global variable.

Implementation

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

Details and Notes

The Shrink pass rewrites all uses of L_X to L_Y' and drops L_X.

For example, all uncaught Overflow exceptions in a SSA function share the same raising block.


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