一种基于人工神经网络的基本块重排方法  被引量:3

A Basic-Block Reordering Algorithm Based on Neural Networks

在线阅读下载全文

作  者:张吉豫[1] 刘先华[1] 梁堃[1] 程旭[1] 

机构地区:[1]北京大学信息科学技术学院计算机科学技术系,北京100871

出  处:《北京大学学报(自然科学版)》2011年第1期9-16,共8页Acta Scientiarum Naturalium Universitatis Pekinensis

基  金:863计划(2006AA111010;2009AA011401)资助

摘  要:基于程序的控制流动信息和体系结构跳转代价模型,使用人工神经网络预测控制流边的执行概率,利用子结构分析技术开展基本块重排。程序的控制流边信息被选择作为神经网络的训练数据,这些信息包含了该边的静态特征和动态行为之间的联系。基于弹性反馈反向传播(RPROP)神经网络,在UniCore处理器上实现了采用子结构分析的基本块重排算法。评测结果表明,此算法可获得与利用剖视信息的优化算法相同的程序性能优化效果,不依赖于剖视信息的特性,可很好地扩展该基本块重排算法的应用范围。The authors present a basic-block reordering method that detects typical structures in the control-flow graph. It utilizes the architecture-specific branch cost model and execution possibilities of control-flow edges to estimate the possible layout costs of specific sub-structures. The layout with the minimal cost estimation would be chosen. The authors further investigate a novel approach to apply neural network to predict execution possibility for each edge. A set of programs are chosen to record particular static information of the edges in the typical structures. The data include the knowledge about the relationship between static program features and dynamic behaviors. It is fed to train an improved back propagation neural network (RPROP). The algorithm is implemented based on a simple pipeline UniCore microprocessor. Experiment result shows that it improves programs' performance about 8% , which indicates that the execution possibility of edges may be predicted using machine learning techniques.

关 键 词:人工神经网络 基本块重排 子结构分析 编译优化 

分 类 号:TP302[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象