Files
clang-p2996/llvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp
Derek Schuff dbca8aa147 [WebAssembly] Use SetVector instead of SmallPtrSet in FixBrTableDefaults (#84418)
This pass inserts all the MBBs into a set and then iterates over them.
But when
the number of elements gets large enough, SmallPtrSet expands into a
hash table
which wouldn't have a deterministic iteration order since the elements
are
pointers. This results in nondeterministic jump table layouts.
Use SetVector instead for a deterministic iteration order.
2024-03-08 09:20:44 -08:00

7.8 KiB