-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaipoInterprocedural optimizationsInterprocedural optimizations
Description
| 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:
- This matches gcc behavior so it would not be a surprise to users.
- 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.
- Some gcc testsuites depend on this -O2 behavior. Some tests would otherwise expose llvm bugs are masked by inlining. We should fix the testsuites.
- 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
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaipoInterprocedural optimizationsInterprocedural optimizations