Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

-Oz inlines too aggressive #12462

Closed Quuxplusone closed 12 years ago

Quuxplusone commented 12 years ago
Bugzilla Link PR12348
Status RESOLVED FIXED
Importance P enhancement
Reported by Jörg Sonnenberger (joerg@NetBSD.org)
Reported on 2012-03-25 01:40:54 -0700
Last modified on 2012-04-30 20:23:59 -0700
Version trunk
Hardware PC Linux
CC geek4civic@gmail.com, llvm-bugs@lists.llvm.org, quickslyver@free.fr, rafael@espindo.la
Fixed by commit(s)
Attachments subr_prf.i (2396 bytes, application/octet-stream)
Blocks
Blocked by
See also
Created attachment 8266
Test case

Compile the attached test caser with -Oz -m32 -ffreestanding. It compiles to
961 Bytes. Comment out the noinline attribute and watch it grow to 1303 Bytes.
That's a 50% increase in size.
Quuxplusone commented 12 years ago

Attached subr_prf.i (2396 bytes, application/octet-stream): Test case

Quuxplusone commented 12 years ago

Fixed as side effect of the inline cost rewrite.