Skip to content

Commit

Permalink
Dont force build CFG - let dependencies take care of it.
Browse files Browse the repository at this point in the history
* OptimizeTempVarsPass does not run if CFG has been built.
* It has been disabled for a while.
* Improves interpreter performance.
  • Loading branch information
subbuss committed Oct 23, 2014
1 parent d8096e2 commit fa44bc1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/src/main/java/org/jruby/ir/IRScope.java
Expand Up @@ -596,11 +596,6 @@ private void optimizeSimpleScopes() {
}

protected void initScope(boolean jitMode) {
// Build CFG and run compiler passes, if necessary
if (getCFG() == null) {
buildCFG();
}

runCompilerPasses(getManager().getCompilerPasses(this));

if (!jitMode && RubyInstanceConfig.IR_COMPILER_PASSES == null) {
Expand Down

0 comments on commit fa44bc1

Please sign in to comment.