deliverable: peephole patternsThe implementation only uses 4 peephole patterns. There are many more patterns that may be useful for the optimizer. Think of as many as you can and implement them following the templates inpatterns.h .
You should examine
optimize.c to see the various primitives you can use
in your patterns.
In particular, a pattern may only use the given operations on the
goto graph (or clearly documented extensions)
and the makeCODExxx constructors defined in
tree.h .
You should hand in the following: A Jar file containing:
A hard copy of these three files, clearly printed and labeled with your group number, should be handed in at the beginning of class. Please refer to the handout provided about the format in which the deliverable should be printed, as provided by Chris. The deadline is MONDAY of the week in which the deliverable is due. This deliverable is also the basis for the peephole contest, where your group may win fabulous T-shirts! |