本文已被:浏览 1431次 下载 1846次
Received:March 29, 2017 Revised:April 20, 2017
Received:March 29, 2017 Revised:April 20, 2017
中文摘要: 目前BWDSP104X编译器对程序中条件分支的处理是采用传统的谓词优化方法,及每条指令和一个谓词相关,只有当谓词为真时指令才被执行,但它存在的局限性是当涉及到多条件谓词时,并不能消除跳转分支,且多条件谓词之间可能存在控制依赖关系,不利于指令并行和指令流水. 因此在现有编译器框架下,针对传统谓词优化方法的不足之处,本文提出一种基于BWDSP104X体系结构下多条件谓词编译优化方法. 实验结果表明,与传统谓词优化方法相比,该优化算法在BWDSP104X编译器上能够取得平均5.62的加速比.
Abstract:At present, the BWDSP104X compiler deals with the conditional branching in the program by using the traditional predicate optimization method, and each instruction is associated with a predicate. Only when the predicate is true, can the instruction be executed. But its existence is limited when the conditional predicates do not eliminate jump branches, and there may be control dependencies between multiple conditional predicates, which is detrimental to instruction parallelism and instruction flow. Therefore, in the framework of the existing compiler, this paper proposes a multi-condition predicate compiler optimization method based on BWDSP104X architecture in view of the shortcomings of traditional predicate optimization method. The experimental results show that the optimization algorithm can achieve an average speed of 5.62 on the BWDSP104X compiler compared with the traditional predicate optimization method.
keywords: conditional branching predicate optimization multi-condition predicates compilation optimization
文章编号: 中图分类号: 文献标志码:
基金项目:“核高基”重大专项(2012ZX01034-001-001)
引用文本:
韩东科,郑启龙,张仁高.BWDSP104X多条件谓词编译优化.计算机系统应用,2018,27(1):201-205
HAN Dong-Ke,ZHENG Qi-Long,ZHANG Ren-Gao.Compilation Optimization of Multi-Condition Predicate on BWDSP104X.COMPUTER SYSTEMS APPLICATIONS,2018,27(1):201-205
韩东科,郑启龙,张仁高.BWDSP104X多条件谓词编译优化.计算机系统应用,2018,27(1):201-205
HAN Dong-Ke,ZHENG Qi-Long,ZHANG Ren-Gao.Compilation Optimization of Multi-Condition Predicate on BWDSP104X.COMPUTER SYSTEMS APPLICATIONS,2018,27(1):201-205