]> granicus.if.org Git - llvm/commit
Recommit "[InlineCost] Use TTI to check if GEP is free."
authorHaicheng Wu <haicheng@codeaurora.org>
Fri, 20 Jan 2017 03:09:11 +0000 (03:09 +0000)
committerHaicheng Wu <haicheng@codeaurora.org>
Fri, 20 Jan 2017 03:09:11 +0000 (03:09 +0000)
commit9f9ec3cd24efe599bd6f4bfafceab096a864e6fe
tree1ffb1594bff9f198413df2af0f488f85a6e425f0
parent50679291930555e6561130ab5311bb4545dbd922
Recommit "[InlineCost] Use TTI to check if GEP is free."

This recommits r292526 which is reverted in r292529 after fixing the test case.

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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292570 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InlineCost.cpp
test/Transforms/Inline/gep-cost.ll [new file with mode: 0644]