public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/38497]  New: PRE missing a load PRE which causes a loop to have two BBs
@ 2008-12-11 23:22 pinskia at gcc dot gnu dot org
  2008-12-11 23:25 ` [Bug tree-optimization/38497] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-11 23:22 UTC (permalink / raw)
  To: gcc-bugs

Testcase:
void DoHuffIteration(int);
int f(int *a)
{
  int i;
  int plaintextlen=*a;
  for(i = 0; i< 10000; i++)
     DoHuffIteration(*a);
return *a - plaintextlen;
}

--- CUT ---
There is a load of *a after that loop even though we could have placed the load
inside the loop after the call.


-- 
           Summary: PRE missing a load PRE which causes a loop to have two
                    BBs
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


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

end of thread, other threads:[~2021-08-22  4:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-38497-4@http.gcc.gnu.org/bugzilla/>
2021-08-22  4:04 ` [Bug tree-optimization/38497] PRE missing a load PRE which causes a loop to have two BBs pinskia at gcc dot gnu.org
2008-12-11 23:22 [Bug tree-optimization/38497] New: " pinskia at gcc dot gnu dot org
2008-12-11 23:25 ` [Bug tree-optimization/38497] " pinskia at gcc dot gnu dot org
2010-03-02 19:01 ` pinskia at gcc dot gnu dot org
2010-03-03 10:43 ` rguenth at gcc dot gnu dot org
2010-03-03 10:57 ` steven at gcc dot gnu dot org
2010-03-03 11:03 ` rguenth at gcc dot gnu dot org
2010-03-03 14:26 ` steven at gcc dot gnu dot org
2010-05-05 10:31 ` rguenth at gcc dot gnu dot 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).