Facilitating value prediction to support speculative program execution
Abstract
One embodiment of the present invention provides a system that predicts a result produced by a section of code in order to support speculative program execution. The system begins by executing the section of code using a head thread in order to produce a result. Before the head thread produces the result, the system generates a predicted result to be used in place of the result. Next, the system allows a speculative thread to use the predicted result in speculatively executing subsequent code that follows the section of code. After the head thread finishes executing the section of code, the system determines if a difference between the predicted result and the result generated by the head thread has affected execution of the speculative thread. If so, the system executes the subsequent code again using the result generated by the head thread. If not, the system performs a join operation to merge state associated with the speculative thread with state associated with the head thread. In one embodiment of the present invention, executing the subsequent code again involves performing a rollback operation for the speculative thread to undo actions performed by the speculative thread.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method that predicts a result produced by a section of code in order to support speculative program execution, the section of code including a plurality of program instructions, the method comprising: executing the section of code within a program using a head thread, wherein executing the section of code produces the result; before the head thread produces the result, generating a predicted result to be used in place of the result; allowing the speculative thread to speculatively execute subsequent code within the program using the predicted result, wherein the subsequent code follows the s
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (7)
Non-Patent Literature (5)
- Marcuello, Pedro and Gonzalez, Antonio. "Clustered Speculative Multithreaded Processors". ACM 1999. pp. 365-372.
- Marcuello, Pedro and Gonzalez, Antonio. "Data Speculative Multithreaded Architecture". IEEE (C) 1998. pp. 321-324.
- Marcuello, Pedro; Gonzalez, Antonio; and Tubella, Jordi. "Speculative Multithreaded Processors". ACM (C) 1998. pp. 77-84.
- Publication: "A Technique for Micro-Rollback Self-Recovery Synthesis", by Raghavengra et al., IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 14, No. 9, Sep. 1993, copyright 1995 IEEE, pp. 1171-1179.
- Publication: "Available Parallelism with Data Value Prediction," by Sathe and Franklin, Proceedings of International Conference on High Performance Computing, Dec. 17, 1998, XP001001139, pp. 194-201.