aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2024-03-08 09:20:44 -0800
committerGitHub <noreply@github.com>2024-03-08 09:20:44 -0800
commitdbca8aa1472b9140a68918b2615519dc7dad593f (patch)
tree87645a547ca8e896bd9b9819628067a6ab6ce503 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent0bbada93a559b604797fe57978f3eca5e41edaeb (diff)
downloadllvm-dbca8aa1472b9140a68918b2615519dc7dad593f.zip
llvm-dbca8aa1472b9140a68918b2615519dc7dad593f.tar.gz
llvm-dbca8aa1472b9140a68918b2615519dc7dad593f.tar.bz2
[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.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions