Research indexJournal article
Partial dead code elimination using slicing transformations
Bodík, Gupta
ACM SIGPLAN Notices1 May 1997
NobleIDark:/48914/w1/20260523/D16933F2DOI10.1145/258916.258930
Partial dead code elimination using slicing transformations
Bodík, Gupta · ACM SIGPLAN Notices · 1997 · Subscription
NobleIDark:/48914/w1/20260523/D16933F2DOI10.1145/258916.258930
The full text is at the publisher
You can read the abstract here, or open it at the publisher.
Abstract
We present an approach for optimizing programs that uncovers additional opportunities for optimization of a statement by predicating the statement. In this paper predication algorithms for achieving partial dead code elimination (PDE) are presented. The process of predication embeds a statement in a control flow structure such that the statement is executed only if the execution follows a path along which the value computed by the statement is live. The control flow restructuring performed to achieve predication is expressed through slicing transformations . This approach achieves PDE that is not realizable by existing algorithms. We prove that our algorithm never increases the operation count along any path, and that for acyclic code all partially dead statements are eliminated. The slicing transformation that achieves predication introduces into the program additional conditional branches. These branches are eliminated in a branch deletion step based upon code duplication. We also show how PDE can be used by acyclic schedulers for VLIW processors to reduce critical path lengths along frequently executed paths.