diff options
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r-- | lib/Transforms/IPO/SampleProfile.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/SampleProfile.cpp b/lib/Transforms/IPO/SampleProfile.cpp index fb7397c3d8e..39e3696972d 100644 --- a/lib/Transforms/IPO/SampleProfile.cpp +++ b/lib/Transforms/IPO/SampleProfile.cpp @@ -790,9 +790,8 @@ bool SampleProfileLoader::inlineHotFunctions( // as a result, we do not have profile info for the branch // probability. We set the probability to 80% taken to indicate // that the static call is likely taken. - Instruction *DI = dyn_cast<Instruction>( - promoteIndirectCall(I, R->getValue(), 80, 100, false, ORE) - ->stripPointerCasts()); + Instruction *DI = promoteIndirectCall( + I, R->getValue(), 80, 100, false, ORE); PromotedInsns.insert(I); // If profile mismatches, we should not attempt to inline DI. if ((isa<CallInst>(DI) || isa<InvokeInst>(DI)) && |