[IndVarSimplify] Make cost estimation in RewriteLoopExitValues smarter