public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/19825] New: -fno-loop-optimize2 does not work
@ 2005-02-08 23:34 Thomas dot Koenig at online dot de
  2005-02-08 23:52 ` [Bug driver/19825] " Thomas dot Koenig at online dot de
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-02-08 23:34 UTC (permalink / raw)
  To: gcc-bugs

Apparently, the compiler likes -floop-optimize2 very much and does
not want it to be switched off:

$ gcc -O1 -fno-loop-optimize -fno-loop-optimize2 -S -fverbose-asm example.c
$ cat example.s
        .file   "example.c"
        .pred.safe_across_calls p1-p5,p16-p63
// GNU C version 4.0.0 20050130 (experimental) (ia64-unknown-linux-gnu)
//      compiled by GNU C version 4.0.0 20050130 (experimental).
// GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
// options passed:  -auxbase -O1 -fno-loop-optimize -fno-loop-optimize2
// -fverbose-asm
// options enabled:  -falign-loops -fargument-alias -fbranch-count-reg
// -fcommon -fcprop-registers -fdefer-pop -feliminate-unused-debug-types
// -ffunction-cse -fgcse-lm -fguess-branch-probability -fident
// -fif-conversion -fif-conversion2 -fivopts -fkeep-static-consts
// -fleading-underscore -floop-optimize2 -fmath-errno -fmerge-constants
// -fomit-frame-pointer -fpeephole -freg-struct-return -fsched-interblock
// -fsched-spec -fsched-stalled-insns-dep -fsplit-ivs-in-unroller
// -ftrapping-math -ftree-ccp -ftree-ch -ftree-copyrename -ftree-dce
// -ftree-dominator-opts -ftree-dse -ftree-fre -ftree-loop-im
// -ftree-loop-ivcanon -ftree-loop-optimize -ftree-lrs -ftree-sra
// -ftree-ter -funwind-tables -fverbose-asm -fzero-initialized-in-bss
// -mgnu-as -mgnu-ld -minline-float-divide-max-throughput -mdwarf2-asm
// -mtune=itanium2

        .text
        .align 16
        .global main#
        .proc main#
main:
        .prologue
        .body
        mov r8 = r0     // <result>,
        br.ret.sptk.many b0     //
        ;;
        .endp main#
        .ident  "GCC: (GNU) 4.0.0 20050130 (experimental)"
$ gcc -dumpmachine
ia64-unknown-linux-gnu

-- 
           Summary: -fno-loop-optimize2 does not work
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Thomas dot Koenig at online dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug driver/19825] -fno-loop-optimize2 does not work
  2005-02-08 23:34 [Bug driver/19825] New: -fno-loop-optimize2 does not work Thomas dot Koenig at online dot de
@ 2005-02-08 23:52 ` Thomas dot Koenig at online dot de
  2005-02-09  2:54 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-02-08 23:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From Thomas dot Koenig at online dot de  2005-02-08 16:36 -------
This blocks testing of compiler options in PR 5900.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |5900
              nThis|                            |


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


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

* [Bug driver/19825] -fno-loop-optimize2 does not work
  2005-02-08 23:34 [Bug driver/19825] New: -fno-loop-optimize2 does not work Thomas dot Koenig at online dot de
  2005-02-08 23:52 ` [Bug driver/19825] " Thomas dot Koenig at online dot de
@ 2005-02-09  2:54 ` pinskia at gcc dot gnu dot org
  2005-02-09  3:03 ` pinskia at gcc dot gnu dot org
  2005-02-10 23:11 ` Thomas dot Koenig at online dot de
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-09  2:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-08 17:33 -------
There is a section in the source which does this:
  /* Enable new loop optimizer pass if any of its optimizations is called.  */
  if (flag_move_loop_invariants
      || flag_unswitch_loops
      || flag_peel_loops
      || flag_unroll_loops
      || flag_branch_on_count_reg)
    flag_loop_optimize2 = 1;

And -fbranch-count-reg is always enabled.

The documention says:
-floop-optimize2
Perform loop optimizations using the new loop optimizer. The optimizations (loop unrolling, peeling 
and unswitching, loop invariant motion) are enabled by separate flags. 

-- 


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


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

* [Bug driver/19825] -fno-loop-optimize2 does not work
  2005-02-08 23:34 [Bug driver/19825] New: -fno-loop-optimize2 does not work Thomas dot Koenig at online dot de
  2005-02-08 23:52 ` [Bug driver/19825] " Thomas dot Koenig at online dot de
  2005-02-09  2:54 ` pinskia at gcc dot gnu dot org
@ 2005-02-09  3:03 ` pinskia at gcc dot gnu dot org
  2005-02-10 23:11 ` Thomas dot Koenig at online dot de
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-09  3:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-08 17:34 -------
In fact the only thing which -floop-optimize2 does without enabling something else at -O1 is to enable 
-fbranch-count-reg which has no effect on ia64.

-- 


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


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

* [Bug driver/19825] -fno-loop-optimize2 does not work
  2005-02-08 23:34 [Bug driver/19825] New: -fno-loop-optimize2 does not work Thomas dot Koenig at online dot de
                   ` (2 preceding siblings ...)
  2005-02-09  3:03 ` pinskia at gcc dot gnu dot org
@ 2005-02-10 23:11 ` Thomas dot Koenig at online dot de
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas dot Koenig at online dot de @ 2005-02-10 23:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From Thomas dot Koenig at online dot de  2005-02-10 20:31 -------


*** This bug has been marked as a duplicate of 19848 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2005-02-10 20:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-08 23:34 [Bug driver/19825] New: -fno-loop-optimize2 does not work Thomas dot Koenig at online dot de
2005-02-08 23:52 ` [Bug driver/19825] " Thomas dot Koenig at online dot de
2005-02-09  2:54 ` pinskia at gcc dot gnu dot org
2005-02-09  3:03 ` pinskia at gcc dot gnu dot org
2005-02-10 23:11 ` Thomas dot Koenig at online dot de

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