[PATCH] After llvm r195496,	code compiled with -Os get substantially larger
    Dimitry Andric 
    dimitry at andric.com
       
    Thu Nov 20 11:40:41 PST 2014
    
    
  
FreeBSD boot2 loader size overview
==================================
See https://svnweb.freebsd.org/base/head/sys/boot/i386/boot2/
Minimized testcase is here: http://www.andric.com/freebsd/clang/boot2-minimal.c
This is being compiled with the following flags:
-cc1 -triple i386-unknown-freebsd11.0 -emit-obj -mrelocation-model static -mregparm 3 -mrtd -target-cpu i386 -Os -w -ffreestanding -mstack-alignment=8 -mllvm -inline-threshold=3 -mllvm -enable-load-pre=false -mllvm -simplifycfg-dup-ret boot2-minimal.c
The "rev" column is the llvm/clang trunk revision tested.
The "text" column is the resulting .text size of boot2.o compiled with that revision.
The "avail" column is the remaining available byte count in the final boot2 binary.
The "link" column directly links to the llvm/clang changeset.
| rev     | text | avail | link
| ------- | ---- | ----- | -----------------------------------------------------------------
| r195495 | 5219 |    31 | <first trunk revision tested>
| r195496 | 5397 |  -145 | http://llvm.org/viewvc/llvm-project?view=revision&revision=195496
| r200502 | 5401 |  -149 | http://llvm.org/viewvc/llvm-project?view=revision&revision=200502
| r202557 | 5391 |  -141 | http://llvm.org/viewvc/llvm-project?view=revision&revision=202557
| r206130 | 5386 |  -133 | http://llvm.org/viewvc/llvm-project?view=revision&revision=206130
| r206766 | 5401 |  -149 | http://llvm.org/viewvc/llvm-project?view=revision&revision=206766
| r207195 | 5407 |  -157 | http://llvm.org/viewvc/llvm-project?view=revision&revision=207195
| r209755 | 5493 |  -241 | http://llvm.org/viewvc/llvm-project?view=revision&revision=209755
| r215135 | 5496 |  -245 | http://llvm.org/viewvc/llvm-project?view=revision&revision=215135
| r216862 | 5506 |  -253 | http://llvm.org/viewvc/llvm-project?view=revision&revision=216862
| r218771 | 5496 |  -245 | http://llvm.org/viewvc/llvm-project?view=revision&revision=218771
| r219773 | 5506 |  -253 | http://llvm.org/viewvc/llvm-project?view=revision&revision=219773
| r220639 | 5506 |  -253 | <last trunk revision tested>
http://reviews.llvm.org/D5859
    
    
More information about the llvm-commits
mailing list