Skip to content

Commit

Permalink
Add support for lowering optimization
Browse files Browse the repository at this point in the history
This commit adds a few support pieces that must be in OMR but will be
used by the new optimization being added in OpenJ9.

Signed-off-by: Leonardo Banderali <leonardo2718@protonmail.com>
  • Loading branch information
Leonardo2718 committed Feb 12, 2021
1 parent a7e83c7 commit b0197ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion compiler/control/OMROptions.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2020 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -1175,6 +1175,7 @@ TR::OptionTable OMR::Options::_jitOptions[] = {
{"traceNonLinearRA", "L\ttrace non-linear RA", SET_OPTION_BIT(TR_TraceNonLinearRegisterAssigner), "F"},
{"traceOpts", "L\tdump each optimization name", SET_OPTION_BIT(TR_TraceOpts), "P" },
{"traceOpts=", "L{regex}\tlist of optimizations to trace", TR::Options::setRegex, offsetof(OMR::Options, _optsToTrace), 0, "P"},
{"traceOptTreeLowering", "L\ttrace tree lowering optimization", TR::Options::traceOptimization, treeLowering, 0, "P"},
{"traceOSR", "L\ttrace OSR", SET_OPTION_BIT(TR_TraceOSR), "P"},
{"traceOSRDefAnalysis", "L\ttrace OSR reaching defintions analysis", TR::Options::traceOptimization, osrDefAnalysis, 0, "P"},
#ifdef J9_PROJECT_SPECIFIC
Expand Down
3 changes: 2 additions & 1 deletion compiler/optimizer/OMROptimizations.enum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
* Copyright (c) 2000, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -81,6 +81,7 @@
OPTIMIZATION(stringPeepholes)
OPTIMIZATION(switchAnalyzer)
OPTIMIZATION(compactLocals)
OPTIMIZATION(treeLowering)
OPTIMIZATION(varHandleTransformer)
OPTIMIZATION(unsafeFastPath)
OPTIMIZATION(recognizedCallTransformer)
Expand Down

0 comments on commit b0197ad

Please sign in to comment.