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

            Bug ID: 65950
           Summary: Loop is not vectorized  with lto.
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ysrumyan at gmail dot com
  Target Milestone: ---

If we compile attached test-case without lto, e.g. using -Ofast  and -fopenmp
loop in foo is vectorized but if we add -flto option it won't be vectorized.
The problem is 'exit' statement in main - if we change it to ordinary return
loop will be vectorized with lto too.

Reply via email to