[llvm] improve performance of Module Analysis stage in the part of processing "other instructions" (PR #76047)

Vyacheslav Levytskyy via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 22 06:16:02 PST 2023


================
@@ -319,15 +291,43 @@ void SPIRVModuleAnalysis::collectFuncNames(MachineInstr &MI,
   }
 }
 
+using InstrSignature = SmallVector<size_t>;
+using InstrTraces = std::set<InstrSignature>;
----------------
VyacheslavLevytskyy wrote:

It would be a problem to use with llvm, I see, for example: https://llvm.org/docs/ProgrammersManual.html#other-set-like-container-options

https://github.com/llvm/llvm-project/pull/76047


More information about the llvm-commits mailing list