[PATCH] D80847: [NFC, StackSafety] Change type of internal container
    Evgenii Stepanov via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri May 29 17:30:41 PDT 2020
    
    
  
eugenis added inline comments.
================
Comment at: llvm/lib/Analysis/StackSafetyAnalysis.cpp:143
 struct FunctionInfo {
-  SmallVector<UseInfo, 4> Allocas;
+  std::map<const AllocaInst *, UseInfo> Allocas;
   SmallVector<UseInfo, 4> Params;
----------------
Why not DenseMap, do you expect this to use less memory at very small sizes?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80847/new/
https://reviews.llvm.org/D80847
    
    
More information about the llvm-commits
mailing list