Towards Constructing the SSA form using Reaching Definitions Over Dominance Frontiers

A. Masud, Federico Ciccozzi
{"title":"Towards Constructing the SSA form using Reaching Definitions Over Dominance Frontiers","authors":"A. Masud, Federico Ciccozzi","doi":"10.1109/SCAM.2019.00012","DOIUrl":null,"url":null,"abstract":"The Static Single Assignment (SSA) form is an intermediate representation used for the analysis and optimization of programs in modern compilers. The ϕ-function placement is the most computationally expensive part of converting any program into its SSA form. The most widely-used ϕ-function placement algorithms are based on computing dominance frontiers. However, this kind of algorithms works under the limiting assumption that all variables are defined at the beginning of the program, which is not the case for local variables. In this paper, we introduce an innovative algorithm based on computing reaching definitions, only assuming that global variables and formal parameters are defined at the beginning of the program. We implemented our algorithm and compared it to a well-known dominance frontiers-based algorithm in the Clang/LLVM compiler framework by performing experiments on a benchmarking suite for Perl. The results of our experiments show that, besides a few computationally expensive cases, our algorithm is fairly efficient, and most notably it produces up to 169% and on an average 74% fewer ϕ-functions than the reference dominance frontiers-based algorithm.","PeriodicalId":431316,"journal":{"name":"2019 19th International Working Conference on Source Code Analysis and Manipulation (SCAM)","volume":"72 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"5","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 19th International Working Conference on Source Code Analysis and Manipulation (SCAM)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SCAM.2019.00012","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 5

Abstract

The Static Single Assignment (SSA) form is an intermediate representation used for the analysis and optimization of programs in modern compilers. The ϕ-function placement is the most computationally expensive part of converting any program into its SSA form. The most widely-used ϕ-function placement algorithms are based on computing dominance frontiers. However, this kind of algorithms works under the limiting assumption that all variables are defined at the beginning of the program, which is not the case for local variables. In this paper, we introduce an innovative algorithm based on computing reaching definitions, only assuming that global variables and formal parameters are defined at the beginning of the program. We implemented our algorithm and compared it to a well-known dominance frontiers-based algorithm in the Clang/LLVM compiler framework by performing experiments on a benchmarking suite for Perl. The results of our experiments show that, besides a few computationally expensive cases, our algorithm is fairly efficient, and most notably it produces up to 169% and on an average 74% fewer ϕ-functions than the reference dominance frontiers-based algorithm.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
利用优势边界上的定义构建SSA形式
静态单赋值(SSA)形式是现代编译器中用于分析和优化程序的中间表示形式。在将任何程序转换为其SSA形式时,在计算上花费最大的部分是部署ϕ-函数。最广泛使用的部署算法是基于计算优势边界的。然而,这种算法是在有限的假设下工作的,即所有变量都是在程序开始时定义的,而局部变量则不是这样。在本文中,我们介绍了一种基于计算到达定义的创新算法,仅假设在程序开始时定义了全局变量和形式参数。我们实现了我们的算法,并通过在Perl基准测试套件上执行实验,将其与Clang/LLVM编译器框架中一个众所周知的基于优势边界的算法进行了比较。我们的实验结果表明,除了一些计算代价昂贵的情况外,我们的算法相当高效,最值得注意的是,它比基于参考优势边界的算法产生高达169%,平均减少74%的ϕ-函数。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
相关文献
Molecular mimicry in halothane hepatitis: Biochemical and structural characterization of lipoylated autoantigens
IF 4.5 3区 医学ToxicologyPub Date : 1995-03-31 DOI: 10.1016/0300-483X(94)03010-Y
Josef Gut, Urs Christen, Nora Frey, Valeria Koch, Daniel Stoffler
Structural, Biochemical Characterization and Molecular Mechanism of Cerastokunin: A New Kunitz-Type Peptide with Potential Inhibition of Thrombin, Factor Xa and Platelets
IF 1.9 4区 生物学The Protein JournalPub Date : 2024-08-02 DOI: 10.1007/s10930-024-10226-9
Noussaiba Saghour, Fatah Chérifi, Samah Saoud, Younes Zebbiche, Amel Meribai, Nadjia Bekkari, Taright-Mahi Samya, Fatima Laraba-Djebari
Molecular and structural characterization of a surfactant-stable high-alkaline protease AprB with a novel structural feature unique to subtilisin family
IF 3.9 3区 生物学BiochimiePub Date : 2011-04-01 DOI: 10.1016/j.biochi.2011.01.011
Aihua Deng , Jie Wu , Guoqiang Zhang , Tingyi Wen
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
On the Efficacy of Dynamic Behavior Comparison for Judging Functional Equivalence Permission Issues in Open-Source Android Apps: An Exploratory Study Interactive Refactoring Documentation Bot Software Engineering by Source Transformation – Experience with TXL (Most Influential Paper, SCAM 2001) On the Quality of Identifiers in Test Code
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1