Prepare inherit_compared before update_compare_tree optimization