[PATCH] D97128: [ThinLTO] Make cloneUsedGlobalVariables deterministic
    Teresa Johnson via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Feb 23 14:34:04 PST 2021
    
    
  
tejohnson accepted this revision.
tejohnson added a comment.
This revision is now accepted and ready to land.
lgtm, thanks for fixing this!
================
Comment at: llvm/include/llvm/IR/Module.h:896
+                                           bool CompilerUsed);
 GlobalVariable *collectUsedGlobalVariables(const Module &M,
                                            SmallPtrSetImpl<GlobalValue *> &Set,
----------------
Can you add a comment for the new interface? The one above is stale as it talks about using a Set. It would also be good to add the rationale for using a vector, so no one decides to do a "cleanup" and switch back to a set later on. 
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97128/new/
https://reviews.llvm.org/D97128
    
    
More information about the llvm-commits
mailing list