[PATCH] D31085: [InlineCost] Increase the cost of Switch

Jun Bum Lim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 19 11:09:49 PDT 2017


junbuml added a comment.

Please see list of benchmarks changed in LLVM test suite and spec2000/2006. No significant code size regression was found in any config. Overall minor positive impact on code size in LLVM test suite, but in https://reviews.llvm.org/owners/package/3/ with LTO, there was  -7.9% reduce in code size in spec2000/vortex.

In AArch64, I didn't see any clear performance impact in LLVM test suite, but in https://reviews.llvm.org/owners/package/3/ with LTO, I observed +17.82% performance improvement in spec2000/vertex.

- https://reviews.llvm.org/owners/package/2/ :

| Benchmarks                                                       | Code size (- is better) |
| MultiSource/Applications/siod                                    | -0.061%                 |
| MultiSource/Applications/hbd                                     | 0.000%                  |
| MultiSource/Applications/JM/lencod/lencod                        | -0.070%                 |
| MultiSource/Applications/JM/ldecod/ldecod                        | 0.000%                  |
| MultiSource/Applications/lua/lua                                 | 0.001%                  |
| MultiSource/Applications/d/make_dparser                          | -0.081%                 |
| MultiSource/Applications/sqlite3/sqlite3                         | -0.217%                 |
| MultiSource/Benchmarks/Prolangs-C/bison/mybison                  | 0.000%                  |
| MultiSource/Benchmarks/MiBench/consumer-typeset/consumer-typeset | 0.000%                  |
| MultiSource/Benchmarks/MiBench/consumer-jpeg/consumer-jpeg       | -0.082%                 |
| MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/cjpeg             | 0.000%                  |
| MultiSource/Benchmarks/MallocBench/gs/gs                         | 0.000%                  |
| spec2000/perlbmk                                                 | -0.066%                 |
| spec2000/gcc                                                     | -0.183%                 |
| spec2000/parser                                                  | 0.000%                  |
| spec2000/crafty                                                  | -0.080%                 |
| spec2000/mesa                                                    | -0.286%                 |
| spec2006/soplex                                                  | 0.000%                  |
| spec2006/xalancbmk                                               | 0.000%                  |
| spec2006/hmmer                                                   | -0.072%                 |
| spec2006/gcc                                                     | -0.191%                 |
| spec2006/h264ref                                                 | 0.000%                  |
| spec2006/povray                                                  | -0.057%                 |
| spec2006/perlbench                                               | -0.060%                 |



- Os :

| Benchmarks                                  | Code size(- is better) |
| MultiSource/Applications/siod/siod          | -0.123%                |
| MultiSource/Applications/JM/lencod/lencod   | 0.000%                 |
| MultiSource/Applications/lua/lua            | 0.000%                 |
| MultiSource/Applications/sqlite3/sqlite3    | 0.001%                 |
| MultiSource/Benchmarks/mafft/pairlocalalign | 0.000%                 |
| MultiSource/Benchmarks/7zip/7zip-benchmark  | 0.001%                 |
| spec2000/perlbmk                            | 0.000%                 |
| spec2000/gap                                | 0.000%                 |
| spec2000/gcc                                | 0.000%                 |
| spec2000/mesa                               | -0.071%                |
| spec2000/vortex                             | 0.000%                 |
| spec2006/gobmk                              | 0.000%                 |
| spec2006/xalancbmk                          | 0.000%                 |
| spec2006/hmmer                              | 0.000%                 |
| spec2006/gcc                                | -0.048%                |
| spec2006/omnetpp                            | 0.000%                 |
| spec2006/h264ref                            | 0.000%                 |
| spec2006/perlbench                          | -0.062%                |



- https://reviews.llvm.org/owners/package/3/ :

| Benchmarks                                           | Code size(- is better) |
| MultiSource/Applications/kimwitu++/kc                | 0.000%                 |
| MultiSource/Applications/siod/siod                   | -0.061%                |
| MultiSource/Applications/hbd/hbd                     | 0.000%                 |
| MultiSource/Applications/JM/lencod/lencod            | 0.000%                 |
| MultiSource/Applications/lua/lua                     | 0.001%                 |
| MultiSource/Applications/SIBsim4/SIBsim4             | 0.001%                 |
| MultiSource/Applications/d/make_dparser              | 0.000%                 |
| MultiSource/Applications/sqlite3/sqlite3             | -0.212%                |
| MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/cjpeg | 0.000%                 |
| MultiSource/Benchmarks/MallocBench/gs/gs             | 0.000%                 |
| MultiSource/Benchmarks/7zip/7zip-benchmark           | 0.000%                 |
| spec2000/perlbmk                                     | -0.066%                |
| spec2000/gcc                                         | -0.182%                |
| spec2000/mesa                                        | -0.356%                |
| spec2000/vortex                                      | 0.000%                 |
| spec2006/soplex                                      | 0.000%                 |
| spec2006/xalancbmk                                   | -0.019%                |
| spec2006/bzip2                                       | 0.000%                 |
| spec2006/hmmer                                       | 0.000%                 |
| spec2006/gcc                                         | -0.188%                |
| spec2006/h264ref                                     | 0.000%                 |
| spec2006/povray                                      | -0.056%                |
| spec2006/perlbench                                   | -0.121%                |



- Spec2000/2006 performance in https://reviews.llvm.org/owners/package/3/ :

| Benchmarks         | Score(+ is better) |
| spec2000/perlbmk   | +2.706%            |
| spec2000/vortex    | +2.028%            |
| spec2000/mesa      | -1.76%             |
| spec2006/soplex    | -1.334%            |
| spec2006/povray    | +1.509%            |
| spec2006/perlbench | +0.757%            |



- Spec2000/2006 performance in https://reviews.llvm.org/owners/package/3/ with LTO :

| Benchmarks      | Score(+ is better) |
| spec2000/gzip   | +2.180%            |
| spec2000/mesa   | -4.093%            |
| spec2000/vortex | +17.822%           |


https://reviews.llvm.org/D31085





More information about the llvm-commits mailing list