首页> 外文会议>International symposium on static analysis >Alive-FP: Automated Verification of Floating Point Based Peephole Optimizations in LLVM
【24h】

Alive-FP: Automated Verification of Floating Point Based Peephole Optimizations in LLVM

机译:Alive-FP:LLVM中基于浮点的窥孔优化的自动验证

获取原文

摘要

Peephole optimizations optimize and canonicalize code to enable other optimizations but are error-prone. Our prior research on Alive, a domain-specific language for specifying LLVM's peephole optimizations, automatically verifies the correctness of integer-based peephole optimizations and generates C++ code for use within LLVM. This paper proposes Alive-FP, an automated verification framework for floating point based peephole optimizations in LLVM. Alive-FP handles a class of floating point optimizations and fast-math optimizations involving signed zeros, not-a-number, and infinities, which do not result in loss of accuracy. This paper provides multiple encodings for various floating point operations to account for the various kinds of undefined behavior and under-specification in the LLVM's language reference manual. We have translated all optimizations that belong to this category into Alive-FP. In this process, we have discovered seven wrong optimizations in LLVM.
机译:窥孔优化可以优化和规范化代码以启用其他优化,但是容易出错。我们先前对Alive(一种用于指定LLVM的窥孔优化的领域特定语言)的研究,会自动验证基于整数的窥孔优化的正确性,并生成可在LLVM中使用的C ++代码。本文提出了Alive-FP,这是一种用于LLVM中基于浮点的窥孔优化的自动验证框架。 Alive-FP处理浮点优化和快速算术优化,涉及带符号的零,非数字和无穷大,而这不会导致精度损失。本文为LLVM语言参考手册中的各种浮点操作提供了多种编码,以解决各种未定义的行为和规格不足的问题。我们已将属于该类别的所有优化转换为Alive-FP。在此过程中,我们发现了LLVM中的七个错误优化。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号