]> granicus.if.org Git - llvm/commit
Fix the assertion failure caused by http://reviews.llvm.org/D22118
authorDehao Chen <dehao@google.com>
Mon, 11 Jul 2016 17:36:02 +0000 (17:36 +0000)
committerDehao Chen <dehao@google.com>
Mon, 11 Jul 2016 17:36:02 +0000 (17:36 +0000)
commit1c6f7aba028da051735d4d1cda94f358ce8f55ba
tree969849d974190990133da95c9d210b34c1033f8d
parent811631864384112d23c540697d33a2b81d97059e
Fix the assertion failure caused by http://reviews.llvm.org/D22118

Summary: http://reviews.llvm.org/D22118 uses metadata to store the call count, which makes it possible to have branch weight to have only one elements. Also fix the assertion failure in inliner when checking the instruction type to include "invoke" instruction.

Reviewers: mkuper, dnovillo

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D22228

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275079 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/MDBuilder.cpp
lib/IR/Metadata.cpp