commit | 84ce155044363cf0285457daa3539c8b4e40114f | [log] [tgz] |
---|---|---|
author | Haicheng Wu <haicheng@codeaurora.org> | Fri Jan 20 18:51:22 2017 +0000 |
committer | Haicheng Wu <haicheng@codeaurora.org> | Fri Jan 20 18:51:22 2017 +0000 |
tree | faf47cae52e0725a25229e199acdb586ef7c36d8 | |
parent | 27f0bb5af490471008629b375a9c0fc124842594 [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292633 91177308-0d34-0410-b5e6-96231b3b80d8