next up previous
Next: Class Declaration: looppeel.h Up: Loop Peeling: An Example Previous: for

A Loop Peeling Changer

A Changer can change every loop in a program, but this might not be desirable. We can use heuristics to decide when to peel, but we don't want to encode these into our Changer since we'd like to keep things simple and let some other optimization pass decide when to peel. So we'd like to structure our Changer as a module that can be used by another Changer.

The Changer can be invoked by passing an instance of it to a unit's change method, or by another optimization pass that subclasses from it.



Subsections

Adam C. Brown 2006-01-26