summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/SCCP.cpp
diff options
context:
space:
mode:
authorHaicheng Wu <haicheng@codeaurora.org>2017-01-19 22:28:34 +0000
committerHaicheng Wu <haicheng@codeaurora.org>2017-01-19 22:28:34 +0000
commitda556345dcfd269af0f6a50acb661dc33d99e92d (patch)
tree1831e152eacd7d41f83fd637cefd2d75e95fb04c /llvm/lib/Transforms/Scalar/SCCP.cpp
parenta8ba9c8e66a3d9ecf9df7aa5dcb93e0377a5fd2f (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud