public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/55731] New: Issue with complete innermost loop unrolling (cunrolli)
@ 2012-12-18 14:13 ysrumyan at gmail dot com
  2012-12-18 14:23 ` [Bug tree-optimization/55731] " ysrumyan at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ysrumyan at gmail dot com @ 2012-12-18 14:13 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55731

             Bug #: 55731
           Summary: Issue with complete innermost loop unrolling
                    (cunrolli)
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ysrumyan@gmail.com
                CC: hubicka@ucw.cz, izamyatin@gmail.com


I attached 2 test-cases extracted from important benchmark at which clang and
icc outperform gcc for x86 target (atom). For 1st test-case (t.c) cunrolli
phase does not perform complete loop unrolling with the following message (test
was compiled with -O3 -funroll-loops options):

  Loop size: 23
  Estimated size after unrolling: 33
Not unrolling loop 1: size would grow.

but it is unrolled by cunroll phase:

  Loop size: 24
  Estimated size after unrolling: 32
Unrolled loop 1 completely (duplicated 2 times).

I wonder why this loop was not unrolled by cunrolli? We lost a lot of
optimizations for unrolled loop such as Constant (address) Propagation, Dead
code elimination etc. and got non-optimal binaries.

For comparsion I added another test (t2.c) with successfull complete unrolling
by cunrolli, at which we can see that all assignments to local array 'b' were
properly propagated and deleted but we don't have such transformations for 1st
test-case.


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

end of thread, other threads:[~2021-12-12  9:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-18 14:13 [Bug tree-optimization/55731] New: Issue with complete innermost loop unrolling (cunrolli) ysrumyan at gmail dot com
2012-12-18 14:23 ` [Bug tree-optimization/55731] " ysrumyan at gmail dot com
2012-12-18 14:24 ` ysrumyan at gmail dot com
2012-12-18 15:35 ` rguenth at gcc dot gnu.org
2012-12-19  9:17 ` ysrumyan at gmail dot com
2012-12-19 10:27 ` rguenth at gcc dot gnu.org
2021-12-12  9:45 ` pinskia at gcc dot gnu.org

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