commit | 8ee4396ed201c240942afa617b2804dfda1e57fa | [log] [tgz] |
---|---|---|
author | Dehao Chen <dehao@google.com> | Mon Feb 06 23:33:15 2017 +0000 |
committer | Dehao Chen <dehao@google.com> | Mon Feb 06 23:33:15 2017 +0000 |
tree | 43ae360f7cb20cf28c58a4a7fd900efbfe42e605 | |
parent | 9075e8029dd22c9fec7a527dec585602e8172c62 [diff] |
Fix the samplepgo indirect call promotion bug: we should not promote a direct call. Summary: Checking CS.getCalledFunction() == nullptr does not necessary indicate indirect call. We also need to check if CS.getCalledValue() is not a constant. Reviewers: davidxl Reviewed By: davidxl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D29570 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294260 91177308-0d34-0410-b5e6-96231b3b80d8