正在加载图片...
从编译器角度看代码移动(2/4) 另一种相关称为名相关( name dependence): 两条指令使用同名参数 (register or memory location) 但不交换数据 一反相关( Antidependence)( WaR if a hazard for hw) Instruction j所写的寄存器或存储单元,与 instruction I所读的 寄存器或存储单元相同,注 cinstruction i是先执行 Dependency Graph 输出相关( Output dependence) WAW if a hazard for hw) Instruction i和 instruction j对同一寄存器或存储单元进行写操 作,必须保证两条指令的写顺序 Dependency Grapt h2021/2/7 20 从编译器角度看代码移动(2/4) • 另一种相关称为名相关( name dependence): 两条指令使用同名参数(register or memory location) 但不交换数据 – 反相关(Antidependence) (WAR if a hazard for HW) • Instruction j 所写的寄存器或存储单元,与 instruction i 所读的 寄存器或存储单元相同,注instruction i 是先执行 – – 输出相关(Output dependence) (WAW if a hazard for HW) • Instruction i 和instruction j 对同一寄存器或存储单元进行写操 作,必须保证两条指令的写顺序
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有