Repository navigation
Add option to skip ilgen optimizations - #6795
Conversation
| optimizer = TR::Optimizer::createOptimizer(comp, self(), true); | ||
| previousOptimizer = comp->getOptimizer(); | ||
| comp->setOptimizer(optimizer); | ||
| } |
There was a problem hiding this comment.
I was surprised to discover there isn't a means to disable this already. I did find two unused functions allowIlGenOptimizations() that nothing in OMR nor any known downstream project uses, but I'd have to dig into the intent of those functions to know if, ultimately, those are the right functions to use.
In the meantime, for your case, can you rename your option TR_DisableIlgenOpts to be more consistent with other options for disabling features?
There was a problem hiding this comment.
Thanks - I've updated the option name!
6420980 to
01ea70e
Compare
| TR::Options::setStaticNumericKBAdjusted, (intptr_t)&OMR::Options::_scratchSpaceLowerBound, 0, "F%d (bytes)"}, | ||
| {"searchCount=", "O<nnn>\tcount of the max search to perform", | ||
| TR::Options::set32BitSignedNumeric, offsetof(OMR::Options,_lastSearchCount), 0, "F%d"}, | ||
| {"skipIlgenOpts", "O\tDo not run the optimizer during ilgen", SET_OPTION_BIT(TR_DisableIlgenOpts), "F"}, |
There was a problem hiding this comment.
Please change the option name text here as well (and insert the new name alphabetically).
|
Please change the PR text as well to reflect the new option name. |
-introduces a TR_DisableIlgenOpts option flag that can be set in order to skip optimizations run during ilgen
01ea70e to
f1177fd
Compare
|
Jenkins build all |
|
PPC failure is known. |
Introduces a TR_DisableIlgenOpts option flag that can be set in order to skip optimizations run during ilgen.