Miscellaneous optimization options for LLVM backend.
commitad3029910fa717946017423acdf0e9832839c302
authorMaksim Panchenko <maks@fb.com>
Fri, 29 May 2015 03:40:05 +0000 (28 20:40 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Fri, 29 May 2015 04:00:38 +0000 (28 21:00 -0700)
treeec5cb9e9e9e63cf5c1a8a748a8040ebaecb7ed5b
parent1a555a8f1b18b682bcecd3fc4a887d448d71e44f
Miscellaneous optimization options for LLVM backend.

Summary: Re-submitting after a revert.
It was causing regression due to code size change.

Add a full set of module passes that closely correspond to clang's and
opt's "-O2", and additional options to control vectorizers and
load-combine.

Reviewed By: @ottoni

Differential Revision: D2109198
hphp/runtime/base/runtime-option.cpp
hphp/runtime/base/runtime-option.h
hphp/runtime/vm/jit/vasm-llvm.cpp