diff options
author | Haicheng Wu <haicheng@codeaurora.org> | 2017-12-22 17:09:09 +0000 |
---|---|---|
committer | Haicheng Wu <haicheng@codeaurora.org> | 2017-12-22 17:09:09 +0000 |
commit | 6d14dfe8f3766142e05da2e96e030b70f97e6a85 (patch) | |
tree | c433f496b2c232f7f9493b0f789e843267711e49 /llvm/test/Bitcode/globalvariable-attributes.ll | |
parent | 5ca33a137a83299335b8164ea3a9157b1e12ae70 (diff) | |
download | bcm5719-llvm-6d14dfe8f3766142e05da2e96e030b70f97e6a85.tar.gz bcm5719-llvm-6d14dfe8f3766142e05da2e96e030b70f97e6a85.zip |
[InlineCost] Find more free binary operations
Currently, inline cost model considers a binary operator as free only if both
its operands are constants. Some simple cases are missing such as a + 0, a - a,
etc. This patch modifies visitBinaryOperator() to call SimplifyBinOp() without
going through simplifyInstruction() to get rid of the constant restriction.
Thus, visitAnd() and visitOr() are not needed.
Differential Revision: https://reviews.llvm.org/D41494
llvm-svn: 321366
Diffstat (limited to 'llvm/test/Bitcode/globalvariable-attributes.ll')
0 files changed, 0 insertions, 0 deletions