diff options
| author | Zhaoshi Zheng <zhaoshiz@coduaurora.org> | 2018-09-26 00:59:09 +0000 | 
|---|---|---|
| committer | Zhaoshi Zheng <zhaoshiz@coduaurora.org> | 2018-09-26 00:59:09 +0000 | 
| commit | 95710337b4dfc77fc9a92eb21168b8bbd62df88a (patch) | |
| tree | bd6f883084f58397eaa7b0e446cf4f0654564403 /clang/lib | |
| parent | c949857a7f4e08ff29db8e542e98884c044bf1ce (diff) | |
| download | bcm5719-llvm-95710337b4dfc77fc9a92eb21168b8bbd62df88a.tar.gz bcm5719-llvm-95710337b4dfc77fc9a92eb21168b8bbd62df88a.zip | |
Revert "Revert "[ConstHoist] Do not rebase single (or few) dependent constant""
This reverts commit bd7b44f35ee9fbe365eb25ce55437ea793b39346.
Reland r342994: disabled the optimization and explicitly enable it in test.
-mllvm -consthoist-min-num-to-rebase<unsigned>=0
[ConstHoist] Do not rebase single (or few) dependent constant
If an instance (InsertionPoint or IP) of Base constant A has only one or few
rebased constants depending on it, do NOT rebase. One extra ADD instruction is
required to materialize each rebased constant, assuming A and the rebased have
the same materialization cost.
Differential Revision: https://reviews.llvm.org/D52243
llvm-svn: 343053
Diffstat (limited to 'clang/lib')
0 files changed, 0 insertions, 0 deletions

