首页> 外国专利> Compiler optimization techniques for exploiting a zero overhead loop mechanism

Compiler optimization techniques for exploiting a zero overhead loop mechanism

机译:利用零开销循环机制的编译器优化技术

摘要

The invention provides compiler loop optimization techniques to take advantage of a zero overhead loop mechanism (ZOLM) in a processor, e.g., a ZOLM in the form of a zero overhead loop buffer (ZOLB). In an illustrative embodiment, a compiler generates a first set of code, and then applies optimizations to the first set of code so as to generate a second set of code configured to operate efficiently with the ZOLB. The optimizations are designed to increase the number of loops of the first set of code that can be accommodated in the ZOLB, to further reduce the overhead of the loops placed in the ZOLB, and to eliminate redundant loading of the ZOLB. Optimizations for increasing the number of loops that can be accommodated in the ZOLB include, e.g., conditional instructions, loop splitting and function inlining. Optimizations for further reductions in loop overhead include, e.g., loop collapsing and loop interchange. Data flow analysis and loop peeling may be used to avoid redundant loading of the ZOLB.
机译:本发明提供了编译器循环优化技术,以利用处理器中的零开销循环机制(ZOLM),例如,零开销循环缓冲器(ZOLB)形式的ZOLM。在说明性实施例中,编译器生成第一组代码,然后将优化应用于第一组代码,以生成第二组代码,该第二组代码被配置为与ZOLB一起有效地操作。这些优化旨在增加可容纳在ZOLB中的第一组代码的循环数,进一步减少放置在ZOLB中的循环的开销,并消除ZOLB的冗余负载。用于增加ZOLB中可以容纳的循环数的优化包括例如条件指令,循环拆分和函数内联。用于进一步减少循环开销的优化包括,例如,循环折叠和循环交换。可以使用数据流分析和循环剥离来避免ZOLB的多余负载。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号