Skip to content

Commit

Permalink
Bug 1617593: Remove the StupidAllocator; r=jandem
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjbvr committed Feb 25, 2020
1 parent b505659 commit 10cb61f
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 550 deletions.
19 changes: 0 additions & 19 deletions js/src/jit/Ion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include "jit/RangeAnalysis.h"
#include "jit/ScalarReplacement.h"
#include "jit/Sink.h"
#include "jit/StupidAllocator.h"
#include "jit/ValueNumbering.h"
#include "jit/WasmBCE.h"
#include "js/Printf.h"
Expand Down Expand Up @@ -1431,24 +1430,6 @@ LIRGraph* GenerateLIR(MIRGenerator* mir) {
break;
}

case RegisterAllocator_Stupid: {
// Use the integrity checker to populate safepoint information, so
// run it in all builds.
if (!integrity.record()) {
return nullptr;
}

StupidAllocator regalloc(mir, &lirgen, *lir);
if (!regalloc.go()) {
return nullptr;
}
if (!integrity.check(true)) {
return nullptr;
}
gs.spewPass("Allocate Registers [Stupid]");
break;
}

default:
MOZ_CRASH("Bad regalloc");
}
Expand Down
1 change: 0 additions & 1 deletion js/src/jit/JitContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include "jit/RangeAnalysis.h"
#include "jit/ScalarReplacement.h"
#include "jit/Sink.h"
#include "jit/StupidAllocator.h"
#include "jit/ValueNumbering.h"
#include "jit/WasmBCE.h"
#include "js/Printf.h"
Expand Down
4 changes: 0 additions & 4 deletions js/src/jit/JitOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ namespace jit {
enum IonRegisterAllocator {
RegisterAllocator_Backtracking,
RegisterAllocator_Testbed,
RegisterAllocator_Stupid
};

static inline mozilla::Maybe<IonRegisterAllocator> LookupRegisterAllocator(
Expand All @@ -30,9 +29,6 @@ static inline mozilla::Maybe<IonRegisterAllocator> LookupRegisterAllocator(
if (!strcmp(name, "testbed")) {
return mozilla::Some(RegisterAllocator_Testbed);
}
if (!strcmp(name, "stupid")) {
return mozilla::Some(RegisterAllocator_Stupid);
}
return mozilla::Nothing();
}

Expand Down
Loading

0 comments on commit 10cb61f

Please sign in to comment.