aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range-path.cc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2021-11-09 10:14:25 +0100
committerAldy Hernandez <aldyh@redhat.com>2021-11-09 14:29:22 +0100
commit47c2cf3ac684fab21ec31c72462b7b21845a41f2 (patch)
treef50d0bc73091d02c016be7e0f50534a4afcbeac2 /gcc/gimple-range-path.cc
parentc71cb26a9e841888f52e4bfcaad94c8f8ecb4fdb (diff)
downloadgcc-47c2cf3ac684fab21ec31c72462b7b21845a41f2.zip
gcc-47c2cf3ac684fab21ec31c72462b7b21845a41f2.tar.gz
gcc-47c2cf3ac684fab21ec31c72462b7b21845a41f2.tar.bz2
Remove TDF_THREADING flag in favor of param.
I am returning a TDF_* flag to the queue of available entries as I am unconvinced that we need to burn an entire flag for internal debugging constructs, especially since we seem to be running out of them. I've added a --param=threader-debug entry similar to the one we use for ranger debugging. Currently this only affects the backward threader, but since the DOM threader is an outlier and on the chopping block, I avoided using the "backward" name. Tested on x86-64 Linux. gcc/ChangeLog: * dumpfile.c (dump_options): Remove TDF_THREADING entry. * dumpfile.h (enum dump_flag): Remove TDF_THREADING and adjust remaining entries. * flag-types.h (enum threader_debug): New. * gimple-range-path.cc (DEBUG_SOLVER): Use param_threader_debug. * params.opt: Add entry for --param=threader-debug=.
Diffstat (limited to 'gcc/gimple-range-path.cc')
-rw-r--r--gcc/gimple-range-path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-range-path.cc b/gcc/gimple-range-path.cc
index 9d3fe89..52de103 100644
--- a/gcc/gimple-range-path.cc
+++ b/gcc/gimple-range-path.cc
@@ -34,7 +34,7 @@ along with GCC; see the file COPYING3. If not see
#include "gimple-iterator.h"
// Internal construct to help facilitate debugging of solver.
-#define DEBUG_SOLVER (dump_file && dump_flags & TDF_THREADING)
+#define DEBUG_SOLVER (dump_file && (param_threader_debug == THREADER_DEBUG_ALL))
path_range_query::path_range_query (gimple_ranger &ranger, bool resolve)
: m_ranger (ranger)