Code Vectorization Techniques in the JVM
summary
The talk explains how modern CPUs provide SIMD instruction sets (SSE/AVX on x86, VIS, NEON, AltiVec) and the JVM techniques used to exploit them: CPU dispatching, VM intrinsics, and automatic bytecode vectorization inside JIT compilers. It also mentions the specialized Vector API being developed in Project Panama as another approach to expose vectorization to Java.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:11SIMD evolution on x86
- 8:55Vectorization approaches
- 13:14HotSpot auto-vectorization
- 15:11Counted loops constraints
- 25:21Unrolled loops vectorization
- 28:20Alignment and cache lines
- 31:55Performance benchmarks
- 36:35Reduction patterns
- 44:47Fused multiply-add
- 47:39AVX-512 features
- 50:11Intrinsics and Project Panama
- 53:03Project Panama Vector API
- 1:00:18Summary and Q&A
