paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Relaxing Alias Analysis: Exploring the Unexplored Space

放宽别名分析:探索尚未探索的空间
PLDI 9(PLDI)2025匹配度 4/10 · 该论文属于传统编译器静态分析的经验性研究(系统性地削弱/移除 LLVM 别名分析信息),问题驱动、有工业级工具与 SPEC benchmark 支撑,与用户对程序分析的底层兴趣相邻;但它完全不涉及 LLM/Agent、浮点程序分析或贝叶斯程序分析这三条核心交叉线,因此只能算方向外围的参考工作。引用 1 inbox
Michel Weber, Theodoros Theodoridis, Zhendong Su
crossref: 2026-09-10

AI 速览

一句话:反向研究别名分析:系统性移除(而非精化)别名信息,发现其在 LLVM 中影响甚微,仅少数查询真正关键。

别名分析是编译器的基础分析,长期研究都假设更精确的别名信息能带来更好的优化,但近期工作显示其性能收益甚微甚至为负。本文转换视角,从"精化"转向"放松"别名信息,即主动删除信息,以系统性地检验上述假设。作者在最先进的编译器 LLVM 上运行 SPEC CPU 2017 基准套件,通过整体移除与随机放松别名信息来观察最终二进制的变化。结果显示三点:(1) 总体影响很小,完全移除别名分析对最终二进制几乎没有影响;(2) 有影响力的查询很少,仅约 3% 的别名信息会导致最终二进制发生改变;(3) 存在未释放的潜力,随机放松在某些用例中可将执行时间降低 21%、二进制大小降低 39%,说明编译器并未充分利用已有的别名信息。作者据此主张,未来研究不应只追求别名分析整体精度的提升,还应探索如何定位与精化最相关的查询,以及如何更有效地利用别名信息。

问题
别名分析被广泛认为是编译器优化的基础,但近期证据表明提升其精度对性能收益甚微甚至有害,这一矛盾尚未被系统性地检验。
方法
以 LLVM 为平台,在 SPEC CPU 2017 上反向操作别名信息:整体移除以及随机放松别名信息,观察其对最终生成二进制的影响。
评估
在 LLVM + SPEC CPU 2017 上定量测量:完全移除别名分析对二进制影响极小;仅约 3% 的别名信息会改变最终二进制;随机放松在某些情况下可将执行时间降低 21%、二进制大小降低 39%。
原文摘要(Abstract)

Alias analysis is a fundamental compiler analysis that powers numerous optimizations. While research has focused on deriving more precise alias information assuming that the compiler will optimize better, recent work shows a negligible, or even negative, performance impact of alias information. In this work, we shift the perspective from refining to relaxing alias information, i.e. , removing information, to complement existing work and challenge that assumption systematically. Our study on a state-of-the-art compiler, LLVM, running the SPEC CPU 2017 benchmark suite, shows (1) a small overall impact —removing alias analysis entirely has little impact on the final binaries, (2) few influential queries —only a small fraction, namely ∼3%, of the alias information leads to changes in the final binary, and (3) lost potential —random relaxations can reduce execution time by 21% and binary size by 39% for certain cases, suggesting that compilers could better utilize alias information. Through this work, we advocate that it is beneficial for future research to avoid simply refining the general precision of alias analysis, but also to explore how to find and refine the most relevant queries, and how to more effectively utilize alias information.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot3072,
  title = {Relaxing Alias Analysis: Exploring the Unexplored Space},
  author = {Michel Weber and Theodoros Theodoridis and Zhendong Su},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {PLDI},
  year = {2025},
  doi = {10.1145/3729254}
}