Skip to content

Re-enable inlining at -O2 at above #2644

@llvmbot

Description

@llvmbot
Bugzilla Link 2272
Resolution FIXED
Resolved on May 27, 2008 13:18
Version trunk
OS All
Reporter LLVM Bugzilla Contributor
CC @asl

Extended Description

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 projects.
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaipoInterprocedural optimizations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions