OSDN Git Service

Expose isLegalToPromot as a global helper function so that SamplePGO pass can call...
authorDehao Chen <dehao@google.com>
Mon, 30 Jan 2017 22:46:37 +0000 (22:46 +0000)
committerDehao Chen <dehao@google.com>
Mon, 30 Jan 2017 22:46:37 +0000 (22:46 +0000)
commit7bac4378dded881f8111142e337b328f079f9de9
tree5d14771952496d856d18581273b31ea38ffc31b3
parentff08fc9e8102e09cf0bcd98b90b67bb823efb479
Expose isLegalToPromot as a global helper function so that SamplePGO pass can call it for legality check.

Summary: SamplePGO needs to check if it is legal to promote a target before it actually promotes it.

Reviewers: davidxl

Reviewed By: davidxl

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293559 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Instrumentation.h
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp