commit | 147a40056abdc4ce8b30d4c938174bba9b5c5f62 | [log] [tgz] |
---|---|---|
author | Haicheng Wu <haicheng@codeaurora.org> | Fri Dec 15 14:34:41 2017 +0000 |
committer | Haicheng Wu <haicheng@codeaurora.org> | Fri Dec 15 14:34:41 2017 +0000 |
tree | 4a1f6ad3260918c6f392afec6c278efe65c46d98 | |
parent | 694162331ffb9b1837758bbdd30e788aa23e4cae [diff] |
[InlineCost] Find repeated loads in the callee SROA analysis of InlineCost can figure out that some stores can be removed after inlining and then the repeated loads clobbered by these stores are also free. This patch finds these clobbered loads and adjust the inline cost accordingly. Differential Revision: https://reviews.llvm.org/D33946 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320814 91177308-0d34-0410-b5e6-96231b3b80d8