Merge "Refine the DexOptNeeded codes."