diff mbox series

[COMMITTED] Always output exported ranges to a dump_file.

Message ID e0b0ec08-4f15-e029-2478-f05a06ae66b2@redhat.com
State Committed
Headers show
Series [COMMITTED] Always output exported ranges to a dump_file. | expand

Commit Message

Andrew MacLeod Oct. 25, 2021, 2:45 p.m. UTC
This patch makes execute_ranger_vrp () match what VRP does and output 
any exported ranges at the end of the pass to a dump file, without 
needing TDF_DETAILS to be provided.

Bootstraps onx86_64-pc-linux-gnu with no regressions.  Pushed.

Andrew
diff mbox series

Patch

From 17d26698aa31268acdf5e1d4d0bc363dd35378ac Mon Sep 17 00:00:00 2001
From: Andrew MacLeod <amacleod@redhat.com>
Date: Wed, 20 Oct 2021 13:41:12 -0400
Subject: [PATCH 2/3] Always output exported ranges to a dump_file.

	* gimple-range.cc (gimple_ranger::export_global_ranges): Remove check
	for TDF_DETAILS.
---
 gcc/gimple-range.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/gimple-range.cc b/gcc/gimple-range.cc
index 69cde911c49..91bacda6dd0 100644
--- a/gcc/gimple-range.cc
+++ b/gcc/gimple-range.cc
@@ -303,7 +303,7 @@  gimple_ranger::export_global_ranges ()
 	  && !r.varying_p())
 	{
 	  bool updated = update_global_range (r, name);
-	  if (!updated || !dump_file || !(dump_flags & TDF_DETAILS))
+	  if (!updated || !dump_file)
 	    continue;
 
 	  if (print_header)
-- 
2.17.2