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

            Bug ID: 92430
           Summary: [10 Regression] Compile-time hog w/ -Os
                    -fno-if-conversion -fno-tree-dce
                    -fno-tree-loop-optimize -fno-tree-vrp
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: compile-time-hog
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-10.0.0-alpha20191103 snapshot (r277758) takes indefinite time when
compiling the following testcase w/ -Os -fno-if-conversion -fno-tree-dce
-fno-tree-loop-optimize -fno-tree-vrp:

int eb, ko;

void
e9 (int pe, int lx)
{
  int ir;

  for (ir = 0; ir < 1; ++ir)
    {
      for (ko = 0; ko < 1; ++ko)
        {
          for (eb = 0; eb < 1; ++eb)
            ko += pe;

          for (ko = 0; ko < 1; ++ko)
            ;
        }

      pe = ir = lx;
    }
}

% timeout 30 gcc-10.0.0-alpha20191103 -Os -fno-if-conversion -fno-tree-dce
-fno-tree-loop-optimize -fno-tree-vrp -c aous70dh.c
zsh: exit 124   timeout 30 gcc-10.0.0-alpha20191103 -Os -fno-if-conversion
-fno-tree-dce   -c

Reply via email to