RICE UNIVERSITY
Value Driven Redundancy Elimination
by
Loren Taylor Simpson
A Thesis Submitted
in Partial Fulfillment of the
Requirements for the Degree
Do ctor of Philosophy
Approved Thesis Committee
Keith D Co op er Asso ciate Professor Chair
Department of Computer Science
Rice University
Linda Torczon FacultyFellow
Department of Computer Science
Rice University
Ken Kennedy Noah Harding Professor
Department of Computer Science
Rice University
Sarita Adve Assistant Professor
Department of Electrical and Computer
Engineering
Rice University
Houston Texas April
Value Driven Redundancy Elimination
Loren Taylor Simpson
Abstract
Value driven redundancy elimination is a combination of value numb ering and co de
motion Value numb ering is an optimization that assigns numb ers to values in sucha
waythattwovalues are assigned the same numb er if the compiler can prove they are
equal When this optimization discovers two computations that pro duce the same
value it can under certain circumstances eliminate one of them Co de motion is an
optimization that attempts to move instructions to less frequently executed lo cations
Traditional techniques must assume that every de nition pro duces a distinct value
Therefore an instruction cannot move past a de nition of one of its sub expressions
This restriction can b e relaxed when certain de nitions are known to pro duce redun
dantvalues By understanding how these two optimizations interact we can simplify
each of them and the resulting combination will b e more p owerful than the sum of
the two parts Value numb ering will b e simpler b ecause it need not b e concerned
with eliminating instructions and co de motion will b e simpler b ecause identifying
sub expressions is not necessary
This researchinvestigates this value driven approach to redundancy elimination
We improve up on the known algorithms for b oth value numb ering and co de motion
and we show exp erimental evidence of their e ectiveness
Acknowledgments
Tosay that this thesis has b een an individual e ort would b e grossly misleading
Many p eople havecontributed to this work in tangible and intangible ways I would