public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/kubaneko/heads/histogram)] fixed byg
@ 2023-03-15 21:09 Ondrej Kubanek
  0 siblings, 0 replies; only message in thread
From: Ondrej Kubanek @ 2023-03-15 21:09 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1a48dd67570170bc0e6e5280da6061bf33ff1a02

commit 1a48dd67570170bc0e6e5280da6061bf33ff1a02
Author: kubaneko <kubanek0ondrej@gmail.com>
Date:   Wed Mar 15 21:09:45 2023 +0000

    fixed byg

Diff:
---
 gcc/tree-ssa-loop-ivcanon.cc | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/gcc/tree-ssa-loop-ivcanon.cc b/gcc/tree-ssa-loop-ivcanon.cc
index 5d4957282d6..c92bb596328 100644
--- a/gcc/tree-ssa-loop-ivcanon.cc
+++ b/gcc/tree-ssa-loop-ivcanon.cc
@@ -1047,13 +1047,7 @@ try_peel_loop (class loop *loop,
         psum+=(*(loop->counters->hist))[i];
         if ((100*psum)/sum>=param_profile_histogram_peel_prcnt)
         {
-            if (i==param_profile_histogram_size_lin-1 && i!=0 && 
-                    param_profile_histogram_size_lin!=param_profile_histogram_size){
-                // Last linear counter absorbs iterations smaller then next power of 2
-                npeel=(1<<floor_log2(param_profile_histogram_size_lin-1))-1;
-            } else {
-                npeel=i;
-            }
+            npeel=i;
             break;
         }
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-15 21:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 21:09 [gcc(refs/users/kubaneko/heads/histogram)] fixed byg 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).