arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.10445cs.PL
收藏

使用MDE进行点到分析:一种多级去重引擎用于重复数据和操作

Points-to Analysis Using MDE: A Multi-level Deduplication Engine for Repetitive Data and Operations

Indian Institute of Technology, Bombay(印度孟买印度理工学院);Savitribai Phule Pune University(萨维特里拜·普莱浦那大学)

Anamitra Ghorui, Aditi Raste, Uday P. Khedker

AI总结:

本文提出MDE多级去重引擎,通过去重和唯一标识符分配消除冗余,减少内存使用和运行时间,提升指针分析效率。

摘要:

精确的指针分析是许多客户端分析和优化的基础组件。扩展流敏感和上下文敏感的指针分析一直是个挑战,因为内存使用和运行时间都面临组合增长。现有方法主要通过减少跟踪的信息量来解决,但牺牲了精度和正确性。我们的经验表明,大部分成本来自重复数据的传播和低层数据结构操作的重复执行。在SPEC基准测试中,超过90%的所有集合-并集操作都是冗余的。我们提出了多级去重引擎(MDE),通过递归增强数据表示,通过去重和为值分配唯一标识符来消除冗余。这使得MDE可以简化许多操作,并通过记忆化使这些操作能够被未来重用。MDE的递归结构允许它表示由其他去重值构造的去重值,捕捉结构冗余,这在非递归技术中难以实现。我们提供了一个完整的C++实现作为库,并将其集成到现有的流敏感和上下文敏感指针分析实现中。在选定的SPEC基准测试中的评估显示,峰值内存使用减少了高达18.10倍,运行时间减少了8.15倍。更值得注意的是,MDE在基准测试规模增加时表现出有效性上升的趋势。除了性能改进,这项工作强调了表示设计的重要性,并提出了为未来分析带来效率的新机会。

英文摘要:

Precise pointer analysis is a foundational component of many client analyses and optimizations. Scaling flow- and context-sensitive pointer analysis has been a long-standing challenge, suffering from combinatorial growth in both memory usage and runtime. Existing approaches address this primarily by reducing the amount of information tracked often, at the cost of precision and soundness. In our experience a significant proportion of this cost comes from propagation of duplicate data and low-level data structure operations being repeated a large number of times. Our measurements on SPEC benchmarks show that more than 90% of all set-union operations performed can be redundant. We present Multi-level Deduplication Engine (MDE), a mechanism that recursively augments the representation of data through de-duplication and the assignment of unique identifiers to values to eliminate redundancy. This allows MDE to trivialize many operations, and memoize operations enabling their future reuse. MDE's recursive structure allows it to represent de-duplicated values that themselves are constructed from other de-deuplicated values, capturing structural redundancy not easily possible with non-recursive techniques. We provide a full C++ implementation of MDE as a library and integrate it into an existing implementation of a flow- and context-sensitive pointer analysis. Evaluation on selected SPEC benchmarks shows a reduction up to 18.10x in peak memory usage and 8.15x in runtime. More notably, MDE exhibits an upward trend of effectiveness with the increase in benchmark size. Besides performance improvements, this work highlights the importance of representation design and suggests new opportunities for bringing efficiency to future analyses.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑