diff options
author | Dehao Chen <dehao@google.com> | 2017-02-06 23:33:15 +0000 |
---|---|---|
committer | Dehao Chen <dehao@google.com> | 2017-02-06 23:33:15 +0000 |
commit | 4a9dd70213f5359b5dc5b3772f81a0b1c40ee55b (patch) | |
tree | dcd004296d844b2604e858ec3479fdda59d097be /llvm/lib/Analysis/LoopAnalysisManager.cpp | |
parent | becf0a362a030e59f4a78621931342ea8aecd5e1 (diff) | |
download | llvm-4a9dd70213f5359b5dc5b3772f81a0b1c40ee55b.zip llvm-4a9dd70213f5359b5dc5b3772f81a0b1c40ee55b.tar.gz llvm-4a9dd70213f5359b5dc5b3772f81a0b1c40ee55b.tar.bz2 |
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
llvm-svn: 294260
Diffstat (limited to 'llvm/lib/Analysis/LoopAnalysisManager.cpp')
0 files changed, 0 insertions, 0 deletions