[LLVMbugs] [Bug 2272] New: Re-enable inlining at -O2 at above

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Apr 30 23:46:33 PDT 2008


           Summary: Re-enable inlining at -O2 at above
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Interprocedural Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: evan.cheng at apple.com
                CC: llvmbugs at cs.uiuc.edu

We've disabled inlining for llvm-gcc optimization level < 3 for now. There are
several reasons for this:
1. This matches gcc behavior so it would not be a surprise to users.
2. Some projects with buggy code, e.g. misuses of inline asm, expect to build
correctly at -O2 when inlining is off. We'll encourage users fixed these
3. Some gcc testsuites depend on this -O2 behavior. Some tests would otherwise
expose llvm bugs are masked by inlining. We should fix the testsuites.
4. llvm inlining default is too aggressive. At -O2, it should not turn on
optimization that will increase code size.

We should re-enable inlining at -O2 but with inlining threshold turned down.

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