public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] verbosify split loads of rhs too
@ 2020-09-24 14:43 Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2020-09-24 14:43 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5d71254dbd020cc3064379377c89356717e910f5

commit 5d71254dbd020cc3064379377c89356717e910f5
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Wed Sep 23 20:12:52 2020 -0300

    verbosify split loads of rhs too

Diff:
---
 gcc/fold-const.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 817d4f9010d..fc64a5a823f 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -6842,8 +6842,6 @@ fold_truth_andor_1 (location_t loc, enum tree_code code, tree truth_type,
 		    && lr_bitpos >= 0
 		    && rr_bitpos >= 0)));
 
-      tree orig_lhs = lhs, orig_rhs = rhs;
-
       int parts = 1;
       tree ld_arg[2][2];
       HOST_WIDE_INT bitpos[2][2];
@@ -7014,12 +7012,15 @@ fold_truth_andor_1 (location_t loc, enum tree_code code, tree truth_type,
 	  *separatep = cmp[1];
 	}
 
-      if (report)
+      if (separatep && *separatep)
+	inform (loc, "merged sep extra %qE and %qE into %qE and %qE",
+		lhs, rhs, result, *separatep);
+      else if (report)
 	inform (loc, "merged nc extra %qE and %qE into %qE",
-		orig_lhs, orig_rhs, result);
+		lhs, rhs, result);
       else if (l_xor || r_xor)
 	inform (loc, "merged extra %qE and %qE into %qE",
-		orig_lhs, orig_rhs, result);
+		lhs, rhs, result);
 
       return result;
     }


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] verbosify split loads of rhs too
@ 2020-09-23 23:24 Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2020-09-23 23:24 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:01a2555de1298f75976f1d994ce239be4a106099

commit 01a2555de1298f75976f1d994ce239be4a106099
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Wed Sep 23 20:12:52 2020 -0300

    verbosify split loads of rhs too

Diff:
---
 gcc/fold-const.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index db082b9b7e0..14b3896a7c9 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -6837,8 +6837,6 @@ fold_truth_andor_1 (location_t loc, enum tree_code code, tree truth_type,
 		    && lr_bitpos >= 0
 		    && rr_bitpos >= 0)));
 
-      tree orig_lhs = lhs, orig_rhs = rhs;
-
       int parts = 1;
       tree ld_arg[2][2];
       HOST_WIDE_INT bitpos[2][2];
@@ -7009,12 +7007,15 @@ fold_truth_andor_1 (location_t loc, enum tree_code code, tree truth_type,
 	  *separatep = cmp[1];
 	}
 
-      if (report)
+      if (separatep && *separatep)
+	inform (loc, "merged sep extra %qE and %qE into %qE and %qE",
+		lhs, rhs, result, *separatep);
+      else if (report)
 	inform (loc, "merged nc extra %qE and %qE into %qE",
-		orig_lhs, orig_rhs, result);
+		lhs, rhs, result);
       else if (l_xor || r_xor)
 	inform (loc, "merged extra %qE and %qE into %qE",
-		orig_lhs, orig_rhs, result);
+		lhs, rhs, result);
 
       return result;
     }


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-24 14:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-24 14:43 [gcc(refs/users/aoliva/heads/testme)] verbosify split loads of rhs too Alexandre Oliva
  -- strict thread matches above, loose matches on Subject: below --
2020-09-23 23:24 Alexandre Oliva

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).