Vectorization in an optimizing compiler
Abstract
An optimizing compiler includes a vectorization mechanism that optimizes a computer program by substituting code that includes one or more vector instructions (vectorized code) for one or more scalar instructions. The cost of the vectorized code is compared to the cost of the code with only scalar instructions. When the cost of the vectorized code is less than the cost of the code with only scalar instructions, the vectorization mechanism determines whether the vectorized code will likely result in processor stalls. If not, the vectorization mechanism substitutes the vectorized code for the code with only scalar instructions. When the vectorized code will likely result in processor stalls, the vectorization mechanism does not substitute the vectorized code, and the code with only scalar instructions remains in the computer program.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 21 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method executed by at least one processor for processing a plurality of instructions in a computer program to be executed by a processor that includes a vector processing unit that processes a plurality of vector instructions that operate on data in a plurality of vector registers, the method comprising the steps of: analyzing a portion of the computer program; generating from a first set of instructions in the computer program that does not include any of the plurality of vector instructions a second set of instructions that includes at least one of the plurality of vec
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (21)
Non-Patent Literature (5)
- "Multi-Core Software", Intel Technology Journal, http://www.intel.com/technology/itj/2007/v11i4/1-inside/5-vectorizer.htm, printed Jan. 25, 2013.
- Agner Fog, "Optimizing software in C++ An Optimization guide for Windows, Linux and Mac platforms", 2004-2014, Technical University of Denmark, pp. 1-164, retrieved online on Mar. 30, 2015 at "http://www.agner.org/optimizing-cpp.pdf".
- Alvanos, Michail, "Auto-Vectorization with little help!", https://sites.google.com/site/malvanos/tutorials/auto-vectorize, printed Jan. 25, 2013.
- Gaurav Mitra et al.; Use of SIMD Vector Operations to Accelerate Application Code Performance on Low-Powered ARM and Intel Platforms; IEEE 2013; retrieved on Jan. 16, 2015; pp. 1107-1116. Retrieved from Internet: .
- Gaurav Mitra et al.; Use of SIMD Vector Operations to Accelerate Application Code Performance on Low-Powered ARM and Intel Platforms; IEEE 2013; retrieved on Jan. 16, 2015; pp. 1107-1116. Retrieved from Internet: <URL: http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=6650996>.