private void addUsersToWorklist(int reg, int latticeValue) {
    if (latticeValue == VARYING) {
      for (SsaInsn insn : ssaMeth.getUseListForRegister(reg)) {
        varyingWorklist.add(insn);
      }
    } else {
      for (SsaInsn insn : ssaMeth.getUseListForRegister(reg)) {
        ssaWorklist.add(insn);
      }
    }
  }
Adds an SSA register's uses to the SSA worklist.

@param reg SSA register
@param latticeValue new lattice value for @param reg.
android/android_framework/dex-maker/src/main/java/com/android/dx/ssa/SCCP.java