Don't invoke range_of_expr multiple times.
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 16 Oct 2020 19:06:44 +0000 (15:06 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Fri, 16 Oct 2020 19:06:44 +0000 (15:06 -0400)
commitaabc96c9195892e669b7728b0e00a7c1a6f3d161
tree795de82ac3c336f561ef72151447aed24fcfbe62
parent4a135bd987e7bff6d3b94efa085e0c246348b486
Don't invoke range_of_expr multiple times.

Call evrp_folder::range_of_expr directly so we dont end up calling
hybrid_folder::range_of_expr and doing double lookups/comparisons.

* gimple-ssa-evrp.c (hybrid_folder::value_on_edge): Call
evrp_folder::value_of_expr directly.
(hybrid_folder::value_of_stmt): Ditto.
gcc/gimple-ssa-evrp.c