首页> 外国专利> Overflow predictive arithmetic instruction optimization using chaining

Overflow predictive arithmetic instruction optimization using chaining

机译:使用链的溢流预测算术指令优化

摘要

A method for arithmetic expression optimization includes receiving an operator and at least one operand of a first instruction defined for a first processor having a first base. The method also includes converting the first instruction to a second instruction optimized for a second processor having a second base smaller than the first base when overflow is impossible based at least in part on the operator and the relationship between the operand type and the second base. The method also includes converting instructions in an instruction chain to a wider base larger than the second base and smaller or equal to the first base when the at least one operand carries potential overflow beyond the second base and when the operator is sensitive to overflow. The chain is bounded by the second instruction and a third instruction that has been previously optimized and is the source of the potential overflow.
机译:一种用于算术表达式优化的方法,包括接收为具有第一基数的第一处理器定义的第一指令的运算符和至少一个操作数。该方法还包括:当不可能溢出时,至少部分地基于运算符和操作数类型与第二基数之间的关系,将第一指令转换为针对第二处理器而优化的第二指令,该第二处理器的第二基数小于第一基数。该方法还包括:当至少一个操作数携带超过第二基数的潜在溢出并且当操作员对溢出敏感时,将指令链中的指令转换为比第二基数更大并且小于或等于第一基数的更宽的基数。该链受第二条指令和第三条指令的限制,该第二条指令和第三条指令已预先优化,并且是潜在溢出的源头。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号