]> granicus.if.org Git - llvm/commit
Updates branch_weights annotation for call instructions during inlining.
authorDehao Chen <dehao@google.com>
Mon, 20 Mar 2017 16:40:44 +0000 (16:40 +0000)
committerDehao Chen <dehao@google.com>
Mon, 20 Mar 2017 16:40:44 +0000 (16:40 +0000)
commitc7322dafb1b1fdb1a40163011a74f6a62dd06a49
treef5c57cc36ac1a9f60b86a773ee29f03f1f13ce40
parente4a14c1d2acb3c5429ea113a74078129b7a58cce
Updates branch_weights annotation for call instructions during inlining.

Summary: Inliner should update the branch_weights annotation to scale it to proper value.

Reviewers: davidxl, eraman

Reviewed By: eraman

Subscribers: zzheng, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298270 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Instruction.h
lib/IR/Instruction.cpp
lib/Transforms/Utils/InlineFunction.cpp
test/Transforms/Inline/prof-update.ll [new file with mode: 0644]