• Lei Wang's avatar
    [Enhancement] Introduce buffer var lca analysis for pass plan buffer allocations (#1376) · f8e7fef5
    Lei Wang authored
    * Update submodule TVM to latest commit and add PlanAndUpdateBufferAllocationLocation function to transform module
    
    - Updated the TVM submodule to commit 3a32b763.
    - Added a new function `PlanAndUpdateBufferAllocationLocation` in the transform module to facilitate buffer allocation planning within PrimFuncs.
    
    * Refactor buffer allocation code for improved readability and consistency
    
    - Updated formatting and spacing in `plan_update_buffer_allocation_location.cc` for better code clarity.
    - Standardized the use of pointer and reference syntax across various class methods.
    - Enhanced comments for better understanding of buffer allocation logic.
    - Removed unnecessary lines and improved overall code structure.
    
    * Refactor buffer allocation checks for improved clarity
    
    - Replaced size checks with empty checks for `ffi::Array<Buffer>` in `plan_update_buffer_allocation_location.cc` to enhance code readability.
    - Updated conditions in multiple methods to use `empty()` instead of comparing size to zero, streamlining the logic.
    f8e7fef5
phase.py 10.6 KB