]> granicus.if.org Git - llvm/commit
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)
commitf62637a83737d955b8c19d0113f1b088ff26904e
treeb96e2bddcf64441f4f6a29e507213488d7c8f83f
parent69af69a8ffe9cc9627c71dfcc9b63ada682c6010
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298660 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Instruction.h
lib/IR/Instruction.cpp
lib/Transforms/IPO/DeadArgumentElimination.cpp
test/Transforms/DeadArgElim/call_profile.ll [new file with mode: 0644]