public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/19705] New: [4.0 Regression] cannot turn off doloop optimization via -fno-branch-count-reg if -fno-ivopts is also supplied
@ 2005-01-30  5:58 pinskia at gcc dot gnu dot org
  2005-01-30  6:08 ` [Bug rtl-optimization/19705] Cannot " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-30  5:58 UTC (permalink / raw)
  To: gcc-bugs

Hmm, this is werid, why cannot I turn off doloop optimization with the -fno-branch-count-reg when I 
also turn off ivopts?  I should be able to when I want to look at the interaction between those two 
optimizations (options).
Testcase:
int foo (int x)
{
    int i= x;
    do {
        x *= 2;
    } while (--i);
    return x;
}

Compile with -O2 -fno-branch-count-reg -fno-ivopts and see there still is a bdnz in there.
but compile with -O2 -fno-branch-count-reg and you don't get the bdnz.

-- 
           Summary: [4.0 Regression] cannot turn off doloop optimization via
                    -fno-branch-count-reg if -fno-ivopts is also supplied
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-*-darwin*


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


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

* [Bug rtl-optimization/19705] Cannot turn off doloop optimization via -fno-branch-count-reg if -fno-ivopts is also supplied
  2005-01-30  5:58 [Bug rtl-optimization/19705] New: [4.0 Regression] cannot turn off doloop optimization via -fno-branch-count-reg if -fno-ivopts is also supplied pinskia at gcc dot gnu dot org
@ 2005-01-30  6:08 ` pinskia at gcc dot gnu dot org
  2005-02-20 19:32 ` pinskia at gcc dot gnu dot org
  2005-09-01 14:05 ` amodra at bigpond dot net dot au
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-30  6:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-30 06:08 -------
Werid it is combine which is doing it.  Hmm and this is not a regression.

Either the documention needs updating or the targets need to turn off these patterns when -fno-
branch-count-reg is supplied.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |documentation
            Summary|[4.0 Regression] cannot turn|Cannot turn off doloop
                   |off doloop optimization via |optimization via -fno-
                   |-fno-branch-count-reg if -  |branch-count-reg if -fno-
                   |fno-ivopts is also supplied |ivopts is also supplied


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


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

* [Bug rtl-optimization/19705] Cannot turn off doloop optimization via -fno-branch-count-reg if -fno-ivopts is also supplied
  2005-01-30  5:58 [Bug rtl-optimization/19705] New: [4.0 Regression] cannot turn off doloop optimization via -fno-branch-count-reg if -fno-ivopts is also supplied pinskia at gcc dot gnu dot org
  2005-01-30  6:08 ` [Bug rtl-optimization/19705] Cannot " pinskia at gcc dot gnu dot org
@ 2005-02-20 19:32 ` pinskia at gcc dot gnu dot org
  2005-09-01 14:05 ` amodra at bigpond dot net dot au
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-20 19:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-20 14:17 -------
Confirmed, the documention just needs to changed as that -fno-branch-count-reg only turns off the 
extra analysis and that you can still get code using the branch counter even when using this option.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-20 14:17:17
               date|                            |


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


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

* [Bug rtl-optimization/19705] Cannot turn off doloop optimization via -fno-branch-count-reg if -fno-ivopts is also supplied
  2005-01-30  5:58 [Bug rtl-optimization/19705] New: [4.0 Regression] cannot turn off doloop optimization via -fno-branch-count-reg if -fno-ivopts is also supplied pinskia at gcc dot gnu dot org
  2005-01-30  6:08 ` [Bug rtl-optimization/19705] Cannot " pinskia at gcc dot gnu dot org
  2005-02-20 19:32 ` pinskia at gcc dot gnu dot org
@ 2005-09-01 14:05 ` amodra at bigpond dot net dot au
  2 siblings, 0 replies; 4+ messages in thread
From: amodra at bigpond dot net dot au @ 2005-09-01 14:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From amodra at bigpond dot net dot au  2005-09-01 14:05 -------
Or make the doloop insn patterns conditional on flag_branch_on_count_reg?

-- 


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


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

end of thread, other threads:[~2005-09-01 14:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-30  5:58 [Bug rtl-optimization/19705] New: [4.0 Regression] cannot turn off doloop optimization via -fno-branch-count-reg if -fno-ivopts is also supplied pinskia at gcc dot gnu dot org
2005-01-30  6:08 ` [Bug rtl-optimization/19705] Cannot " pinskia at gcc dot gnu dot org
2005-02-20 19:32 ` pinskia at gcc dot gnu dot org
2005-09-01 14:05 ` amodra at bigpond dot net dot au

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