[PATCH] D142574: [llvm] Replace array allocation pattern by SmallVector in ComputeMappedEditDistance
    Mehdi AMINI via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jan 25 13:10:02 PST 2023
    
    
  
mehdi_amini added inline comments.
================
Comment at: llvm/include/llvm/ADT/edit_distance.h:73
 
-  const unsigned SmallBufferSize = 64;
-  unsigned SmallBuffer[SmallBufferSize];
----------------
I don't know if the previous size was tuned, but if so we should carry it over to the SmallVector.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142574/new/
https://reviews.llvm.org/D142574
    
    
More information about the llvm-commits
mailing list