• Lei Wang's avatar
    [Refactor] Disable legacy vectorization for buffer allocation (#535) · e71c7a17
    Lei Wang authored
    * Refactor OptimizeForTarget function by removing redundant buffer allocation step and cleaning up code
    
    * Removed the PlanAndUpdateBufferAllocationLocation step from the OptimizeForTarget function to streamline the optimization process.
    * Cleaned up unnecessary whitespace in the function for improved readability.
    * Enhanced the overall clarity and maintainability of the code.
    
    * Refactor AllocateNode handling in vectorize_loop.cc
    
    * Simplified the VisitStmt_ method for AllocateNode by removing the complex extent mutation logic.
    * Streamlined the allocation process to directly call the base class method, enhancing code clarity and maintainability.
    * Improved overall readability by eliminating unnecessary comments and code related to extent handling.
    
    * Remove `tl_kernel.c` file, eliminating the backward kernel implementation and associated error handling functions. This cleanup enhances code maintainability by removing unused components related to the backward kernel processing.
    
    * Add buffer allocation planning step in OptimizeForTarget function
    
    * Introduced the PlanAndUpdateBufferAllocationLocation step to the OptimizeForTarget function, enhancing the optimization process.
    * This addition improves the overall efficiency of buffer allocation during the target optimization phase, ensuring better resource management.
    e71c7a17
vectorize_loop.cc 30.1 KB