Methods to optimize a program loop via vector instructions using a shuffle table and a blend table
Abstract
According to one embodiment, a code optimizer is configured to receive first code having a program loop implemented with scalar instructions to store values of a first array to a second array based on values of a third array and to generate second code representing the program loop using at least one vector instruction. The second code include a shuffle instruction to shuffle elements of the first array based on the third array using a shuffle table in a vector manner, a blend instruction to blend the shuffled elements of the first array using a blend table in a vector manner, and a store instruction to store the blended elements of the first array in the second array.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 6.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method, comprising: receiving first code having a program loop implemented with scalar instructions to store values of a first array to a second array based on corresponding values of a third array, an address of the third array to be received from a caller of the program loop; and generating second code representing the program loop using at least one vector instruction, the second code including a shuffle instruction to shuffle elements of the first array based on corresponding elements of the third array using a shuffle table in parallel, including comparing elements
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (6 of 6 total)
References Cited — Backward Prior Art (17)
Non-Patent Literature (4)
- International Search Report mailed Sep. 5, 2012, for International Application No. PCT/US2011/065216, 11 pages.
- PCT International Search Report for PCT Counterpart Application No. PCT/US2011/065216, 5 pgs., (Sep. 5, 2012).
- PCT Notification concerning Transmittal of International Preliminary Report on Patentability (Chapter I of the Patent Cooperation Treaty) for PCT Counterpart Application No. PCT/US2011/065216, 6 pgs., (Jun. 17, 2014).
- PCT Written Opinion of the International Searching Authority for PCT Counterpart Application No. PCT/US2011/065216, 4 pgs., (Sep. 5, 2012).