[PATCH] D32008: [SampleProfile] Skip intrinsic calls when visiting callsites in InlineHotFunctions. NFC.
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 18 03:21:48 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL300541: [SampleProfile] Skip intrinsic calls when visiting callsites in… (authored by adibiagio).
Changed prior to commit:
https://reviews.llvm.org/D32008?vs=95102&id=95546#toc
Repository:
rL LLVM
https://reviews.llvm.org/D32008
Files:
llvm/trunk/lib/Transforms/IPO/SampleProfile.cpp
Index: llvm/trunk/lib/Transforms/IPO/SampleProfile.cpp
===================================================================
--- llvm/trunk/lib/Transforms/IPO/SampleProfile.cpp
+++ llvm/trunk/lib/Transforms/IPO/SampleProfile.cpp
@@ -677,7 +677,7 @@
for (auto &I : BB.getInstList()) {
const FunctionSamples *FS = nullptr;
if ((isa<CallInst>(I) || isa<InvokeInst>(I)) &&
- (FS = findCalleeFunctionSamples(I))) {
+ !isa<IntrinsicInst>(I) && (FS = findCalleeFunctionSamples(I))) {
Candidates.push_back(&I);
if (callsiteIsHot(Samples, FS))
Hot = true;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32008.95546.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170418/2b9f78c6/attachment.bin>
More information about the llvm-commits
mailing list