[LLVMbugs] [Bug 2945] New: always-inline removes internal functions w/ o always inline attribute

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Oct 24 13:28:06 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2945

           Summary: always-inline removes internal functions w/o always
                    inline attribute
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Interprocedural Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu


Test case (attached):
--
; RUN: llvm-as < %s | opt -inline | llvm-dis | grep {@foo}

define internal i32 @foo() nounwind {
  ret i32 0
}
--

This is blocking always running the always inline pass (or we should remove the
test for this from the GCC test suite). clang, for example, never ever emits
(trivially) unused static definitions.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list