https://bugs.llvm.org/show_bug.cgi?id=49687

            Bug ID: 49687
           Summary: Infinite loop in a recursive call graph
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

Created attachment 24681
  --> https://bugs.llvm.org/attachment.cgi?id=24681&action=edit
Simplified IR found by bugpoint

I have a recursive call graph that is apparently entering an infinite
loop, at first I observed this when forcing inline in the optimization pipeline
but later bugpoint found a more concise pipeline that reproduces the bug.

Bugpoint found the following 'opt' invocation to enter the infinite loop:

   opt -inline -simplifycfg -tailcallelim -loop-unroll

As a comparison, the original C code when compiled with GCC and the
'alwaysinline' attribute errors out, for all optimizations, with the following:

   out.c: In function ‘__foo’:
   out.c:252:50: error: inlining failed in call to always_inline
   ‘__bar’: function not inlinable

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to