• Lei Wang's avatar
    [Enhancement] Refactor vectorization checks in loop_vectorize (#1440) · e387102c
    Lei Wang authored
    * Introduced a new function, IsExprInvariantInVectorBoundary, to encapsulate the logic for checking if an expression is invariant within vector boundaries, improving code clarity and reusability.
    * Updated the existing vectorization logic to utilize this new function, streamlining the process of determining vectorization feasibility based on boundary conditions.
    * Enhanced comments for better understanding of the vectorization criteria and mathematical rationale behind the checks.
    e387102c
loop_vectorize.cc 12.8 KB