Reorder conditions in LMR and pruning