public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/20514] New: hoisting of label out of jumptable would take place at cse, should happen at trees
@ 2005-03-17  8:21 aoliva at gcc dot gnu dot org
  2005-03-17 17:23 ` [Bug tree-optimization/20514] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2005-03-17  8:21 UTC (permalink / raw)
  To: gcc-bugs

The following testcase from bug 18628 exposes a case in which cse would have
folded a load from a jump table into a label.  Jeff suspects this should have
happened earlier, in the tree level, so he asked me to file this bug.  Here's
the testcase:

int i;
int main()
{
  for (;;)
  {
    switch (i)
    {
      case 0:
      case 1:
        return 1;

      case 2:
      case 3:
        return 0;

      case 5:
        --i;
    }
  }
}

-- 
           Summary: hoisting of label out of jumptable would take place at
                    cse, should happen at trees
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: law at gcc dot gnu dot org
        ReportedBy: aoliva at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 19721
             nThis:


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


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-20514-334@http.gcc.gnu.org/bugzilla/>]
[parent not found: <bug-20514-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2023-08-05  3:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-17  8:21 [Bug tree-optimization/20514] New: hoisting of label out of jumptable would take place at cse, should happen at trees aoliva at gcc dot gnu dot org
2005-03-17 17:23 ` [Bug tree-optimization/20514] " pinskia at gcc dot gnu dot org
2005-04-13 18:30 ` pinskia at gcc dot gnu dot org
2005-05-06  8:50 ` steven at gcc dot gnu dot org
2005-05-06 13:40 ` pinskia at gcc dot gnu dot org
     [not found] <bug-20514-334@http.gcc.gnu.org/bugzilla/>
2006-09-17  8:00 ` pinskia at gcc dot gnu dot org
2007-12-14 15:01 ` aldot at gcc dot gnu dot org
     [not found] <bug-20514-4@http.gcc.gnu.org/bugzilla/>
2021-05-04 12:31 ` rguenth at gcc dot gnu.org
2021-07-24  5:17 ` pinskia at gcc dot gnu.org
2023-08-05  3:09 ` 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).