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

Claim 7:
8. The method according to claim 7, wherein the first program block comprises a loop statement, the loop statement comprises a plurality of function instructions, and the method further comprises:
determining a sixth function instruction and a seventh function instruction between which data dependency exists in the loop statement; and
determining that a synchronization path from a node corresponding to the seventh function instruction to a node corresponding to the sixth function instruction is unreachable in the first synchronization path graph and a second synchronization path graph, and inserting a synchronization instruction pair between a fifth statement comprising the sixth function instruction and a sixth statement comprising the seventh function instruction, wherein the second synchronization path graph indicates an additional directed dependency relationship between synchronized function instructions in the loop statement, the second synchronization path graph comprises an additional plurality of function instruction nodes and an additional synchronization path between the additional plurality of function instruction nodes, and a direction of the additional synchronization path is different from a direction of the synchronization path.