Patent ID: 11934832
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 11:
12. The method according to claim 8, wherein the synchronization instruction pair comprises a first synchronization instruction and a second synchronization instruction, and the method further comprises at least one of:
inserting the first synchronization instruction after an eighth function instruction outside the loop statement in the first program block, wherein data dependency exists between the eighth function instruction and the seventh function instruction in the loop statement, or a synchronization path from a node corresponding to the eighth function instruction to the node corresponding to the seventh function instruction in the first synchronization path graph is reachable; or
inserting the second synchronization instruction before the eighth function instruction outside the loop statement in the first program block, wherein the data dependency exists between the eighth function instruction and the seventh function instruction in the loop statement, or the synchronization path from the node corresponding to the eighth function instruction to the node corresponding to the seventh function instruction in the first synchronization path graph is reachable.