Skip to content

Commit

Permalink
Revert "[ORC] Preserve order of constructors with same priority (#95532
Browse files Browse the repository at this point in the history
…)"

The test fails on 32-bit ARMv8:
https://lab.llvm.org/buildbot/#/builders/154/builds/170

This reverts commit e5d0627.
  • Loading branch information
hahnjo committed Jun 18, 2024
1 parent 4b4aaf1 commit edd6f0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 174 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ GlobalCtorDtorScraper::operator()(ThreadSafeModule TSM,

for (auto E : COrDtors)
InitsOrDeInits.push_back(std::make_pair(E.Func, E.Priority));
llvm::stable_sort(InitsOrDeInits, llvm::less_second());
llvm::sort(InitsOrDeInits, llvm::less_second());

auto *InitOrDeInitFuncEntryBlock =
BasicBlock::Create(Ctx, "entry", InitOrDeInitFunc);
Expand Down
173 changes: 0 additions & 173 deletions llvm/test/ExecutionEngine/Orc/global-ctor-order.ll

This file was deleted.

0 comments on commit edd6f0c

Please sign in to comment.