Increase optimization level of Clang
authorMarco Costalba <mcostalba@gmail.com>
Sun, 29 Apr 2012 22:11:23 +0000 (23:11 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 29 Apr 2012 22:11:23 +0000 (23:11 +0100)
commit96f4ab48d8b2e3129a2d028f7739f12db2200667
tree72fcc6324301e926f73eecaad94acfdbf41c8941
parent39c08c17c5812dc947d83a07cae702029319af2f
Increase optimization level of Clang

Set optimization level to 4 and get a 2.564% faster binary:

Stockfish (Clang, Level 4) bench:
$ make build ARCH=osx-x86-64 COMP=clang
(Clang does not support PGO)
Average of 4 trials:
Total time (ms): 5137.5
Nodes searched: 5631135
Nodes/second: 1096084.5

Stockfish (Clang, Level 3) bench:
$ make build ARCH=osx-x86-64 COMP=clang
(Clang does not support PGO)
Average of 4 trials:
Total time (ms): 5269.25
Nodes searched: 5631135
Nodes/second: 1068679.25

Stockfish (GCC, PGO) bench:
$ make profile-build ARCH=osx-x86-64
Average of 4 trials:
Total time (ms): 5286
Nodes searched: 5631135
Nodes/second: 1065292.25

Suggestion and performance tests by Daylen Yang.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/Makefile