https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125307

            Bug ID: 125307
           Summary: Gswitch cases should take an edge or a bb instead of a
                    label once in cfg mode
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: compile-time-hog
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Gswitch cases take a hi, low and label.
But really the label should either be an edge or a basic block.
This is both a compile time improvement and a memory usage issue.

Everytime we need to figure out where the case goes to you need to go searching
each block for the label. That is just bad news and it is a linear search too.

Reply via email to