Recommit "[InlineCost] Use TTI to check if GEP is free." #3
authorHaicheng Wu <haicheng@codeaurora.org>
Fri, 20 Jan 2017 18:51:22 +0000 (18:51 +0000)
committerHaicheng Wu <haicheng@codeaurora.org>
Fri, 20 Jan 2017 18:51:22 +0000 (18:51 +0000)
commit201b191b82858d2055e92ca8289082ce44ee8bb0
treeec58fa3ce422b940a34cc6bd5e26a8873292255e
parent91fb1f4be78425f6a15a364ff9552ddc7edc1627
Recommit "[InlineCost] Use TTI to check if GEP is free." #3

This is the third attemp to recommit r292526.

The original summary:

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.

llvm-svn: 292633
llvm/lib/Analysis/InlineCost.cpp
llvm/test/Transforms/Inline/AArch64/gep-cost.ll [new file with mode: 0644]
llvm/test/Transforms/Inline/AArch64/lit.local.cfg [new file with mode: 0644]