@Override
          public void visitBlock(SsaBasicBlock block, SsaBasicBlock unused) {
            block.forEachInsn(
                new SsaInsn.Visitor() {
                  @Override
                  public void visitMoveInsn(NormalSsaInsn insn) {
                    // do nothing
                  }

                  @Override
                  public void visitPhiInsn(PhiInsn insn) {
                    // do nothing
                  }

                  @Override
                  public void visitNonMoveInsn(NormalSsaInsn insn) {
                    processInsn(insn);
                  }
                });
          }
Runs escape analysis and scalar replacement of arrays.
android/android_framework/dex-maker/src/main/java/com/android/dx/ssa/EscapeAnalysis.java