summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorEvgeny Astigeevich <evgeny.astigeevich@arm.com>2017-07-27 12:49:27 +0000
committerEvgeny Astigeevich <evgeny.astigeevich@arm.com>2017-07-27 12:49:27 +0000
commit61c1bd5abcc6f6c20ec9835f96aa2500452b16e5 (patch)
treefce16f762de54d63675acd305eab38df02b07fd3 /clang/lib
parentcbbbfe403348379d77a25a20297d8c0bfec2a407 (diff)
downloadbcm5719-llvm-61c1bd5abcc6f6c20ec9835f96aa2500452b16e5.tar.gz
bcm5719-llvm-61c1bd5abcc6f6c20ec9835f96aa2500452b16e5.zip
[InlineCost, NFC] Change CallAnalyzer::isGEPFree to use TTI::getUserCost instead of TTI::getGEPCost
Currently CallAnalyzer::isGEPFree uses TTI::getGEPCost to check if GEP is free. TTI::getGEPCost cannot handle cases when GEPs participate in Def-Use dependencies (see https://reviews.llvm.org/D31186 for example). There is TTI::getUserCost which can calculate the cost more accurately by taking dependencies into account. Differential Revision: https://reviews.llvm.org/D33685 llvm-svn: 309268
Diffstat (limited to 'clang/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud