首页> 外国专利> System and method of loop vectorization by compressing indexes and data elements from iterations based on a control mask

System and method of loop vectorization by compressing indexes and data elements from iterations based on a control mask

机译:通过基于控制掩码压缩迭代中的索引和数据元素来进行循环矢量化的系统和方法

摘要

Loop vectorization methods and apparatus are disclosed. An example method includes generating a first control mask for a set of iterations of a loop by evaluating a condition of the loop, wherein generating the first control mask includes setting a bit of the control mask to a first value when the condition indicates that an operation of the loop is to be executed, and setting the bit of the first control mask to a second value when the condition indicates that the operation of the loop is to be bypassed. The example method also includes compressing indexes corresponding to the first set of iterations of the loop according to the first control mask.
机译:公开了循环矢量化方法和装置。示例方法包括通过评估循环的条件来为循环的一组迭代生成第一控制掩码,其中生成第一控制掩码的步骤包括:当条件指示操作时,将控制掩码的位设置为第一值。要执行该循环操作,并在条件指示要绕过循环操作时将第一控制掩码的位设置为第二值。该示例方法还包括根据第一控制掩码来压缩与循环的第一迭代集合相对应的索引。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号