summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/metadata-function-blocks.ll
diff options
context:
space:
mode:
authorHaicheng Wu <haicheng@codeaurora.org>2017-12-22 17:09:09 +0000
committerHaicheng Wu <haicheng@codeaurora.org>2017-12-22 17:09:09 +0000
commit6d14dfe8f3766142e05da2e96e030b70f97e6a85 (patch)
treec433f496b2c232f7f9493b0f789e843267711e49 /llvm/test/Bitcode/metadata-function-blocks.ll
parent5ca33a137a83299335b8164ea3a9157b1e12ae70 (diff)
downloadbcm5719-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/metadata-function-blocks.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud