public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/kubaneko/heads/histogram)] fixed warnings
@ 2023-04-14 14:46 Ondrej Kubanek
  0 siblings, 0 replies; 2+ messages in thread
From: Ondrej Kubanek @ 2023-04-14 14:46 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0e92ac04b7cd73672754c76f17b1ec8a8b3044d8

commit 0e92ac04b7cd73672754c76f17b1ec8a8b3044d8
Author: kubaneko <kubanek0ondrej@gmail.com>
Date:   Fri Apr 14 14:46:41 2023 +0000

    fixed warnings

Diff:
---
 gcc/lto-streamer-out.cc | 2 +-
 gcc/tree-ssa-loop-ch.cc | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/lto-streamer-out.cc b/gcc/lto-streamer-out.cc
index 8901a82dd67..9e7370e6fd6 100644
--- a/gcc/lto-streamer-out.cc
+++ b/gcc/lto-streamer-out.cc
@@ -2184,7 +2184,7 @@ output_cfg (struct output_block *ob, struct function *fn)
       streamer_write_hwi (ob, loop->counters!=NULL);
       if (loop->counters) {
           streamer_write_gcov_count (ob, loop->counters->sum);
-          for (unsigned int i=0; i<param_profile_histogram_size; ++i) {
+          for (unsigned int i=0; i<(unsigned int) param_profile_histogram_size; ++i) {
             streamer_write_gcov_count (ob, (*loop->counters->hist)[i]);
           }
       }
diff --git a/gcc/tree-ssa-loop-ch.cc b/gcc/tree-ssa-loop-ch.cc
index 57eb366cfda..8617afe839a 100644
--- a/gcc/tree-ssa-loop-ch.cc
+++ b/gcc/tree-ssa-loop-ch.cc
@@ -462,7 +462,6 @@ ch_base::copy_headers (function *fun)
       edge_iterator ei;
       FOR_EACH_EDGE (e, ei, loop->header->preds)
         entry_count += e->count ();
-      auto prob_enters_loop=profile_probability::guessed_always();
       while (should_duplicate_loop_header_p (header, loop, &remaining_limit))
 	{
 	  if (dump_file && (dump_flags & TDF_DETAILS))

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

* [gcc(refs/users/kubaneko/heads/histogram)] fixed warnings
@ 2023-05-10 17:27 Ondrej Kubanek
  0 siblings, 0 replies; 2+ messages in thread
From: Ondrej Kubanek @ 2023-05-10 17:27 UTC (permalink / raw)
  To: gcc-cvs

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

commit 5d991f8d35f3f8b1e42cc661fc42067b26ab6c34
Author: kubaneko <kubanek0ondrej@gmail.com>
Date:   Wed May 10 13:05:53 2023 +0000

    fixed warnings

Diff:
---
 gcc/gimple-loop-versioning-histograms.cc | 4 ++--
 gcc/tree-vect-loop.cc                    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/gimple-loop-versioning-histograms.cc b/gcc/gimple-loop-versioning-histograms.cc
index 6abe4d3e9b1..7323511e8bc 100644
--- a/gcc/gimple-loop-versioning-histograms.cc
+++ b/gcc/gimple-loop-versioning-histograms.cc
@@ -110,7 +110,7 @@ pass_loop_histogram_versioning::execute (function *fn)
       gcov_type best_val = 0;
 
       /* Look for dominating iteration count.  */
-      for (int i = 0; i < loop->counters->lin->length (); i++)
+      for (int i = 0; i < (int)loop->counters->lin->length (); i++)
 	{
 	  if ((*(loop->counters->lin))[i] > best_val)
 	    {
@@ -247,7 +247,7 @@ pass_loop_histogram_versioning::execute (function *fn)
 			 "loop %i versioned based on histogram "
 			 "for %i iterations (header execution count %d)\n",
 			 loop->num, best_iters,
-			 optimized_loop->header->count.to_gcov_type ());
+			 (int)optimized_loop->header->count.to_gcov_type ());
     }
   free_numbers_of_iterations_estimates (cfun);
   scev_finalize ();
diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc
index 1b261fe01f5..cdbc024a087 100644
--- a/gcc/tree-vect-loop.cc
+++ b/gcc/tree-vect-loop.cc
@@ -2102,7 +2102,7 @@ vect_analyze_loop_costing (loop_vec_info loop_vinfo,
       use_estimate = false;
     }
 
-  HOST_WIDE_INT estimated_niter;
+  HOST_WIDE_INT estimated_niter = -1;
 
   /* If we are vectorizing an epilogue then we know the maximum number of
      scalar iterations it will cover is at least one lower than the

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

end of thread, other threads:[~2023-05-10 17:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-14 14:46 [gcc(refs/users/kubaneko/heads/histogram)] fixed warnings Ondrej Kubanek
2023-05-10 17:27 Ondrej Kubanek

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