[Bug tree-optimization/35362] Splitting up a switch table into smaller ones (where there a huge gaps between the clusters)

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 1 14:57:00 GMT 2019


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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
I can confirm it's implemented. One get following clusters for the 2 tests:

 grep clusters pr36362.c.171t.switchlower1 
;; GIMPLE switch case clusters: JT:0-20 JT:110-220 JT:310-324 

grep clusters pr36362-2.c.171t.switchlower1 
;; GIMPLE switch case clusters: JT:0-20 JT:110-220 JT:310-324 1318 1320-1324 

Which looks good to me.


More information about the Gcc-bugs mailing list