public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5503] Range-on-edge trace tweak.
@ 2021-11-24 14:05 Andrew Macleod
0 siblings, 0 replies; only message in thread
From: Andrew Macleod @ 2021-11-24 14:05 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a031bb7a585f789df2aed856a57646b8c45d0878
commit r12-5503-ga031bb7a585f789df2aed856a57646b8c45d0878
Author: Andrew MacLeod <amacleod@redhat.com>
Date: Fri Nov 19 13:27:18 2021 -0500
Range-on-edge trace tweak.
Trace formatting gets out of sync when range on edge is called with a constant.
* gimple-range.cc (gimple_ranger::range_on_edge): Call trailer when
a constant is encountered to terminate the trace.
Diff:
---
gcc/gimple-range.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/gimple-range.cc b/gcc/gimple-range.cc
index a2b68b2bc80..9ca568ce55d 100644
--- a/gcc/gimple-range.cc
+++ b/gcc/gimple-range.cc
@@ -216,7 +216,7 @@ gimple_ranger::range_on_edge (irange &r, edge e, tree name)
bool res = true;
if (!gimple_range_ssa_p (name))
- return get_tree_range (r, name, NULL);
+ res = get_tree_range (r, name, NULL);
else
{
range_on_exit (r, e->src, name);
@@ -230,7 +230,7 @@ gimple_ranger::range_on_edge (irange &r, edge e, tree name)
if (idx)
tracer.trailer (idx, "range_on_edge", res, name, r);
- return true;
+ return res;
}
// fold_range wrapper for range_of_stmt to use as an internal client.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-24 14:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-24 14:05 [gcc r12-5503] Range-on-edge trace tweak Andrew Macleod
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).