aboutsummaryrefslogtreecommitdiff
path: root/third_party/subzero/src/IceELFObjectWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/subzero/src/IceELFObjectWriter.cpp')
-rw-r--r--third_party/subzero/src/IceELFObjectWriter.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/third_party/subzero/src/IceELFObjectWriter.cpp b/third_party/subzero/src/IceELFObjectWriter.cpp
index 6517f39ac..9f41af613 100644
--- a/third_party/subzero/src/IceELFObjectWriter.cpp
+++ b/third_party/subzero/src/IceELFObjectWriter.cpp
@@ -542,17 +542,6 @@ template <typename ConstType> void ELFObjectWriter::writeConstantPool(Type Ty) {
constexpr SizeT SymbolSize = 0;
Section->setFileOffset(alignFileOffset(Align));
- // If the -reorder-pooled-constant option is set to true, we should shuffle
- // the constants before we emit them.
- if (getFlags().getReorderPooledConstants() && !Pool.empty()) {
- // Use the constant's kind value as the salt for creating random number
- // generator.
- Operand::OperandKind K = (*Pool.begin())->getKind();
- RandomNumberGenerator RNG(getFlags().getRandomSeed(),
- RPE_PooledConstantReordering, K);
- RandomShuffle(Pool.begin(), Pool.end(),
- [&RNG](uint64_t N) { return (uint32_t)RNG.next(N); });
- }
// Write the data.
for (Constant *C : Pool) {
if (!C->getShouldBePooled())
@@ -629,14 +618,6 @@ void ELFObjectWriter::setUndefinedSyms(const ConstantList &UndefSyms) {
const auto *Sym = llvm::cast<ConstantRelocatable>(S);
GlobalString Name = Sym->getName();
assert(Name.hasStdString());
- bool BadIntrinsic;
- const Intrinsics::FullIntrinsicInfo *Info =
- Ctx.getIntrinsicsInfo().find(Name, BadIntrinsic);
- if (Info)
- continue;
- // Ignore BadIntrinsic, which is set if the name begins with "llvm." but
- // doesn't match a known intrinsic. If we want this to turn into an error,
- // we should catch it early on.
assert(Sym->getOffset() == 0);
SymTab->noteUndefinedSym(Name, NullSection);
StrTab->add(Name);