Dynamic vector mask generation and control flow optimization method and device

By developing a method and apparatus for generating and optimizing control flow in a RISC-V processor, the problems of high vector mask generation overhead, low data processing efficiency, and insufficient dynamic vector length adaptation are solved, thereby improving vector execution efficiency and control flow optimization capabilities.

CN122431731AActive Publication Date: 2026-07-21BEIJING VCORE TECH CO LTD
9 Cites 0 Cited by

Patent Information

Application Number
CN202610895992.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-22
Publication Date
2026-07-21
Estimated Expiration
2046-06-22

AI Technical Summary

Technical Problem

In the RISC-V processor architecture, existing vector mask generation schemes suffer from high mask generation overhead, low data processing efficiency, and insufficient dynamic vector length adaptation capability. In particular, the control flow optimization effect is limited when dealing with complex condition judgments and dynamic vector length changes.

Method used

By acquiring and executing, the bit-level conditional expression information in the parsing program is parsed, and the bit-level conditions are parsed to obtain the parsing result. By converting the format of the compact bit vector, an adaptation vector mask generation and control flow optimization device is obtained. The generation and control flow optimization method and device control the execution behavior of data elements, realize conditional execution of elements, and reduce or replace control flow jumps based on conditional branch instructions.

Benefits of technology

This technology enables the reduction of mask generation latency, improvement of vector execution efficiency, enhanced adaptability to dynamic vector length environments, and reduction of control flow path overhead in RISC-V processors.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention discloses a dynamic vector mask generation and control flow optimization method and device, and relates to the technical field of computers. The method comprises the following steps: acquiring bit-level condition expression information in an executive program and analyzing the bit-level condition expression information; performing extraction, rearrangement or combination processing on the target bits to generate compact bit vectors representing execution conditions of target data elements; performing format conversion on the compact bit vector based on vector configuration parameters to generate a vector mask adaptive to the current vector register layout; controlling an execution behavior of a target data element based on the vector mask; and when the length of the vector is changed, carrying out adaptive adjustment on the vector mask. By constructing the mapping relation between the bit level condition and the vector mask, the direct control of the bit operation result on the vector execution is realized, the mask generation overhead and the control flow branch overhead are reduced, and the vector execution efficiency is improved.
Need to check novelty before this filing date? Find Prior Art