Skip to content

Commit 9fabf9d

Browse files
committed
[llvm][asmprinter] Make call graph section deterministic
The call-graph-section-assembly.ll tests in CodeGen/X86 and CodeGen/Aarch64 bot fail under LLVM_REVERSE_ITERATION. These sets should use SetVector to avoid non-determinism in the ouput.
1 parent 4ecb3c7 commit 9fabf9d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/include/llvm/CodeGen/AsmPrinter.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "llvm/ADT/DenseMap.h"
1919
#include "llvm/ADT/IntrusiveRefCntPtr.h"
2020
#include "llvm/ADT/MapVector.h"
21+
#include "llvm/ADT/SetVector.h"
2122
#include "llvm/ADT/SmallSet.h"
2223
#include "llvm/ADT/SmallVector.h"
2324
#include "llvm/Analysis/ProfileSummaryInfo.h"
@@ -207,9 +208,9 @@ class LLVM_ABI AsmPrinter : public MachineFunctionPass {
207208
using CGTypeId = uint64_t;
208209

209210
/// Unique target type IDs.
210-
SmallSet<CGTypeId, 4> IndirectCalleeTypeIDs;
211+
SetVector<CGTypeId> IndirectCalleeTypeIDs;
211212
/// Unique direct callees.
212-
SmallSet<MCSymbol *, 4> DirectCallees;
213+
SetVector<MCSymbol *> DirectCallees;
213214
};
214215

215216
enum CallGraphSectionFormatVersion : uint8_t {

0 commit comments

Comments
 (0)