Skip to content

Commit

Permalink
Remove unused AlwaysUseTrampoline CodeGenerator option
Browse files Browse the repository at this point in the history
The option has the same functionality as the StressTrampolines option.

Signed-off-by: Daryl Maier <maier@ca.ibm.com>
  • Loading branch information
0xdaryl committed Jan 30, 2019
1 parent 513fe8c commit 02f006e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
5 changes: 1 addition & 4 deletions compiler/codegen/OMRCodeGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1338,9 +1338,6 @@ class OMR_EXTENSIBLE CodeGenerator

TR::RealRegister **_unlatchedRegisterList; // dynamically allocated

bool alwaysUseTrampolines() { return _enabledFlags.testAny(AlwaysUseTrampolines); }
void setAlwaysUseTrampolines() {_enabledFlags.set(AlwaysUseTrampolines);}

bool shouldBuildStructure() { return _enabledFlags.testAny(ShouldBuildStructure); }
void setShouldBuildStructure() {_enabledFlags.set(ShouldBuildStructure);}

Expand Down Expand Up @@ -1788,7 +1785,7 @@ class OMR_EXTENSIBLE CodeGenerator
// AVAILABLE = 0x0002,
// AVAILABLE = 0x0004,
EnableRefinedAliasSets = 0x0008,
AlwaysUseTrampolines = 0x0010,
// AVAILABLE = 0x0010,
ShouldBuildStructure = 0x0020,
LockFreeSpillList = 0x0040, // TAROK only (until it matures)
UseNonLinearRegisterAssigner = 0x0080, // TAROK only (until it matures)
Expand Down
4 changes: 0 additions & 4 deletions compiler/x/amd64/codegen/OMRCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ OMR::X86::AMD64::CodeGenerator::CodeGenerator() :
if (accessStaticsIndirectly)
self()->setAccessStaticsIndirectly(true);

static char *alwaysUseTrampolines = feGetEnv("TR_AlwaysUseTrampolines");
if (alwaysUseTrampolines)
self()->setAlwaysUseTrampolines();

self()->setSupportsDoubleWordCAS();
self()->setSupportsDoubleWordSet();

Expand Down
2 changes: 1 addition & 1 deletion compiler/x/codegen/OMRCodeGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ class OMR_EXTENSIBLE CodeGenerator : public OMR::CodeGenerator
//

#if defined(TR_TARGET_64BIT)
#define NEEDS_TRAMPOLINE(target, rip, cg) (cg->alwaysUseTrampolines() || !IS_32BIT_RIP((target), (rip)))
#define NEEDS_TRAMPOLINE(target, rip, cg) (!IS_32BIT_RIP((target), (rip)))
#else
// Give the C++ compiler a hand
#define NEEDS_TRAMPOLINE(target, rip, cg) (0)
Expand Down
2 changes: 1 addition & 1 deletion compiler/z/codegen/OMRCodeGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ extern int64_t getIntegralValue(TR::Node* node);
#endif

// Multi Code Cache Routines for checking whether an entry point is within reach of a BASRL.
#define NEEDS_TRAMPOLINE(target, rip, cg) (cg->alwaysUseTrampolines() || !CHECK_32BIT_TRAMPOLINE_RANGE(target,rip))
#define NEEDS_TRAMPOLINE(target, rip, cg) (!CHECK_32BIT_TRAMPOLINE_RANGE(target,rip))

#define TR_MAX_MVC_SIZE 256
#define TR_MAX_CLC_SIZE 256
Expand Down

0 comments on commit 02f006e

Please sign in to comment.