re PR middle-end/82123 (spurious -Wformat-overflow warning for converted vars)

PR middle-end/82123
	PR tree-optimization/81592
	PR middle-end/79257
	* gimple-ssa-evrp-analyze.c (evrp_range_analyzer::enter): Do nothing
	if not optimizing.
	(evrp_range_analyzer::record_ranges_from_stmt): Likewise.
	(evrp_range_analyzer::pop_to_marker): Likewise.

From-SVN: r257851
This commit is contained in:
Jeff Law 2018-02-20 11:49:46 -07:00 committed by Jeff Law
parent f210b3b372
commit 2db63ab20c
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,13 @@
2018-02-20 Jeff Law <law@redhat.com>
PR middle-end/82123
PR tree-optimization/81592
PR middle-end/79257
* gimple-ssa-evrp-analyze.c (evrp_range_analyzer::enter): Do nothing
if not optimizing.
(evrp_range_analyzer::record_ranges_from_stmt): Likewise.
(evrp_range_analyzer::pop_to_marker): Likewise.
2018-02-20 Richard Sandiford <richard.sandiford@linaro.org>
PR tree-optimization/84419

View File

@ -69,6 +69,8 @@ evrp_range_analyzer::push_marker ()
void
evrp_range_analyzer::enter (basic_block bb)
{
if (!optimize)
return;
push_marker ();
record_ranges_from_incoming_edge (bb);
record_ranges_from_phis (bb);
@ -279,6 +281,9 @@ evrp_range_analyzer::record_ranges_from_stmt (gimple *stmt, bool temporary)
{
tree output = NULL_TREE;
if (!optimize)
return;
if (dyn_cast <gcond *> (stmt))
;
else if (stmt_interesting_for_vrp (stmt))
@ -390,6 +395,8 @@ evrp_range_analyzer::pop_to_marker (void)
void
evrp_range_analyzer::leave (basic_block bb ATTRIBUTE_UNUSED)
{
if (!optimize)
return;
pop_to_marker ();
}