diff options
author | Haicheng Wu <haicheng@codeaurora.org> | 2017-01-19 22:28:34 +0000 |
---|---|---|
committer | Haicheng Wu <haicheng@codeaurora.org> | 2017-01-19 22:28:34 +0000 |
commit | da556345dcfd269af0f6a50acb661dc33d99e92d (patch) | |
tree | 1831e152eacd7d41f83fd637cefd2d75e95fb04c /llvm/lib/Transforms/Scalar/SCCP.cpp | |
parent | a8ba9c8e66a3d9ecf9df7aa5dcb93e0377a5fd2f (diff) | |
download | bcm5719-llvm-da556345dcfd269af0f6a50acb661dc33d99e92d.tar.gz bcm5719-llvm-da556345dcfd269af0f6a50acb661dc33d99e92d.zip |
[InlineCost] Use TTI to check if GEP is free.
Currently, a GEP is considered free only if its indices are all constant.
TTI::getGEPCost() can give target-specific more accurate analysis. TTI is
already used for the cost of many other instructions.
Differential Revision: https://reviews.llvm.org/D28693
llvm-svn: 292526
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SCCP.cpp')
0 files changed, 0 insertions, 0 deletions