From: Jeff Law Date: Mon, 4 Dec 2017 16:10:49 +0000 (-0700) Subject: * gimple-ssa-evrp-analyze.c X-Git-Tag: upstream/12.2.0~35078 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d48f6f3f2d1f8b62b538939f82740f463a193b8b;p=platform%2Fupstream%2Fgcc.git * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::extract_range_from_stmt): Always use vr_values::update_value_range so preexisting range info is medged with new range info, even if the new range is VR_VARYING. From-SVN: r255386 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4b072b4..e6523a3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-12-04 Jeff Law + + * gimple-ssa-evrp-analyze.c + (evrp_range_analyzer::extract_range_from_stmt): Always use + vr_values::update_value_range so preexisting range info is + medged with new range info, even if the new range is VR_VARYING. + 2017-12-04 Segher Boessenkool * combine.c: Adjust comment. diff --git a/gcc/gimple-ssa-evrp-analyze.c b/gcc/gimple-ssa-evrp-analyze.c index 551b1d6..fb3d329 100644 --- a/gcc/gimple-ssa-evrp-analyze.c +++ b/gcc/gimple-ssa-evrp-analyze.c @@ -271,8 +271,7 @@ evrp_range_analyzer::record_ranges_from_stmt (gimple *stmt) edge taken_edge; value_range vr = VR_INITIALIZER; vr_values->extract_range_from_stmt (stmt, &taken_edge, &output, &vr); - if (output - && (vr.type == VR_RANGE || vr.type == VR_ANTI_RANGE)) + if (output) { vr_values->update_value_range (output, &vr);