diff options
author | Fangrui Song <maskray@google.com> | 2019-04-05 16:16:23 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-04-05 16:16:23 +0000 |
commit | 2c5c12c0417bd9405732bc58f6c2a6f18522d933 (patch) | |
tree | d70de2c9ffeb31b3ebfb54deb9d36f25cb924b7e /llvm/lib/Transforms/IPO/SampleProfile.cpp | |
parent | 681b0798dbbc6b3500c9930977ec8a274b142acb (diff) | |
download | bcm5719-llvm-2c5c12c0417bd9405732bc58f6c2a6f18522d933.tar.gz bcm5719-llvm-2c5c12c0417bd9405732bc58f6c2a6f18522d933.zip |
Change some dyn_cast to more apropriate isa. NFC
llvm-svn: 357773
Diffstat (limited to 'llvm/lib/Transforms/IPO/SampleProfile.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/SampleProfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/SampleProfile.cpp b/llvm/lib/Transforms/IPO/SampleProfile.cpp index b6ea014e79f..2955c338e91 100644 --- a/llvm/lib/Transforms/IPO/SampleProfile.cpp +++ b/llvm/lib/Transforms/IPO/SampleProfile.cpp @@ -1329,7 +1329,7 @@ void SampleProfileLoader::propagateWeights(Function &F) { annotateValueSite(*I.getParent()->getParent()->getParent(), I, SortedCallTargets, Sum, IPVK_IndirectCallTarget, SortedCallTargets.size()); - } else if (!dyn_cast<IntrinsicInst>(&I)) { + } else if (!isa<IntrinsicInst>(&I)) { I.setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights( {static_cast<uint32_t>(BlockWeights[BB])})); |