-
公开(公告)号:US10684834B2
公开(公告)日:2020-06-16
申请号:US16360951
申请日:2019-03-21
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Hongyuan Liu , Cho-Li Wang , KingTin Lam , Huanxin Lin , Bin Zhang , Junchao Ma
Abstract: Embodiments of the present invention disclose a method and an apparatus for detecting inter-instruction data dependency. The method comprises: comparing a thread number corresponding to a historical access operation with a thread number corresponding to a write access operation, if the thread number corresponding to the write access operation is less than the thread number corresponding to the historical access operation, which indicates existence of data dependency for a to-be-detected instruction, terminating the detection; or comparing a thread number corresponding to a historical write access operation with a thread number corresponding to a read access operation, if the thread number corresponding to the read access operation is less than the thread number corresponding to the historical write access operation, which indicates existence of data dependency for the to-be-detected instruction, terminating the detection.