Aggressive compiler optimization and parallelization with thread-level speculation
Liling Chen, Youfeng Wu · Proceedings of the International Conference on Parallel Processing · 2003
We present a technique that exploits close collaboration between the compiler and the speculative multithreaded hardware to explore aggressive optimizations and parallelization for scalar programs. The compiler aggressively optimizes the frequently executed code in user programs by predicting an execution path or the values of long-latency instructions. Based on the predicted hot execution path, the compiler forms regions of greatly simplified data and control flow graphs and then performs aggressive optimizations on the formed regions. Thread level speculation (TLS) helps expose program parallelism and guarantees program correctness when the prediction is incorrect. With the collaboration of compilers and speculative multithreaded support, the program performance can be significantly improved. The preliminary results with simple trace regions demonstrate that the performance gain on dynamic compiler schedule cycles can be 33% for some benchmark and about 10%, on the average, for all the eight SpecInt95 benchmarks. For SpecInt2k, the performance gain is up to 23% with the conservative execution model. With a cycle accurate simulator with the conservative execution model, the overall performance gain by considering runtime factors (e.g., cache misses and branch misprediction) for vortex and m88ksim is 12% and 14.7%, respectively. The performance gain can be higher with more sophisticated region formation and region-based optimizations.
Cited by 14 works. doi:10.1109/icpp.2003.1240629
Authors
References
- Trace Scheduling: A Technique for Global Microcode Compaction
- The superblock: An effective technique for VLIW and superscalar compilation
- Optimally profiling and tracing programs
- Speculative versioning cache
- A chip-multiprocessor architecture with speculative multithreading
- A dynamic multithreading processor
- In search of speculative thread-level parallelism
- Understanding the backward slices of performance degrading instructions
- Region-based compilation: an introduction and motivation
- A dynamic multithreading processor