Avoid modifying the OneClassForEachPhysReg map while iterating over it.