[llvm] improve performance of Module Analysis stage in the part of processing "other instructions" (PR #76047)
    Noel Grandin via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Dec 21 12:05:31 PST 2023
    
    
  
================
@@ -319,15 +291,43 @@ void SPIRVModuleAnalysis::collectFuncNames(MachineInstr &MI,
   }
 }
 
+using InstrSignature = SmallVector<size_t>;
+using InstrTraces = std::set<InstrSignature>;
----------------
grandinj wrote:
could use std::unordered_set here, since this code doesn't seem to care about ordering?
https://github.com/llvm/llvm-project/pull/76047
    
    
More information about the llvm-commits
mailing list