public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/103821] New: [12 Regression] huge compile time (jump threading) at -O3 for simple code
@ 2021-12-23 20:14 pinskia at gcc dot gnu.org
  2021-12-23 20:14 ` [Bug tree-optimization/103821] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-23 20:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103821
           Summary: [12 Regression] huge compile time (jump threading) at
                    -O3 for simple code
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: compile-time-hog
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Take:
    #include <inttypes.h>
    uint16_t int_sqrt32(uint32_t x)
    {
        uint16_t res=0;
        uint16_t add= 0x8000;   
        do {
            uint16_t temp=res | add;
            uint32_t g2=temp*temp;      
            if (x>=g2)
                res=temp;           
            add>>=1;
        } while(add);
        return res;
    }
----- CUT -----
Compile this at -O3 and GCC takes a long time:
 backwards jump threading           :  20.12 ( 81%)   0.01 ( 50%)  20.12 ( 78%)
   26M ( 79%)

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

end of thread, other threads:[~2022-01-11 14:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-23 20:14 [Bug tree-optimization/103821] New: [12 Regression] huge compile time (jump threading) at -O3 for simple code pinskia at gcc dot gnu.org
2021-12-23 20:14 ` [Bug tree-optimization/103821] " pinskia at gcc dot gnu.org
2021-12-23 20:14 ` pinskia at gcc dot gnu.org
2021-12-28 10:56 ` [Bug tree-optimization/103821] [12 Regression] huge compile time (jump threading) at -O3 for simple code since r12-4790-g4b3a325f07acebf47e82de227ce1d5ba62f5bcae marxin at gcc dot gnu.org
2022-01-04 13:26 ` rguenth at gcc dot gnu.org
2022-01-10 21:12 ` amacleod at redhat dot com
2022-01-11 14:39 ` cvs-commit at gcc dot gnu.org
2022-01-11 14:40 ` amacleod at redhat dot com

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