Set the prof weight correctly for call instructions in DeadArgumentElimination.
authorDehao Chen <dehao@google.com>
Thu, 23 Mar 2017 23:26:00 +0000 (23:26 +0000)
committerDehao Chen <dehao@google.com>
Thu, 23 Mar 2017 23:26:00 +0000 (23:26 +0000)
commit722e94061baa662a0f41ede6fd0cf6d0dcf5932a
treee8de7b25f8207906b96af22fd15384142cde2639
parentdef79b21e4f45dec583beedf747c6a02c542164d
Set the prof weight correctly for call instructions in DeadArgumentElimination.

Summary: In DeadArgumentElimination, the call instructions will be replaced. We also need to set the prof weights so that function inlining can find the correct profile.

Reviewers: eraman

Reviewed By: eraman

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D31143

llvm-svn: 298660
llvm/include/llvm/IR/Instruction.h
llvm/lib/IR/Instruction.cpp
llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
llvm/test/Transforms/DeadArgElim/call_profile.ll [new file with mode: 0644]