[llvm] Fix non-determinism in debuginfo (PR #68332)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 5 10:26:00 PDT 2023


================
@@ -263,7 +265,8 @@ struct VarRecord {
 /// TODO: Backing storage shouldn't be limited to allocas only. Some local
 /// variables have their storage allocated by the calling function (addresses
 /// passed in with sret & byval parameters).
-using StorageToVarsMap = DenseMap<const AllocaInst *, SmallSet<VarRecord, 2>>;
+using StorageToVarsMap =
+    DenseMap<const AllocaInst *, SmallSetVector<VarRecord, 2>>;
----------------
ilovepi wrote:

I'm not sure that is necessary. SmallSetVector is a type whose main use is to prevent non-deterministic output. 

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


More information about the llvm-commits mailing list