[llvm] r275705 - Refactor indirect call promotion profitability analysis (NFC)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 17 08:06:56 PDT 2016


Sorry about this noisy commit! I didn't properly merge together all the git
revisions on my branch before committing D21932/r275707. This and the other
mistake commit r275706 cancel each other out.


On Sun, Jul 17, 2016 at 7:46 AM, Teresa Johnson via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: tejohnson
> Date: Sun Jul 17 09:46:54 2016
> New Revision: 275705
>
> URL: http://llvm.org/viewvc/llvm-project?rev=275705&view=rev
> Log:
> Refactor indirect call promotion profitability analysis (NFC)
>
> Summary:
> Refactored the profitability analysis out of the IC promotion pass and
> into lib/Analysis so that it can be accessed by the summary index
> builder in a follow-on patch to enable IC promotion in ThinLTO (D21932).
>
> Reviewers: davidxl, xur
>
> Subscribers: llvm-commits
>
> Differential Revision: http://reviews.llvm.org/D22182
>
> Modified:
>     llvm/trunk/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
>
> Modified:
> llvm/trunk/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp?rev=275705&r1=275704&r2=275705&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
> (original)
> +++ llvm/trunk/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
> Sun Jul 17 09:46:54 2016
> @@ -275,14 +275,6 @@ ICallPromotionFunc::getPromotionCandidat
>      DEBUG(dbgs() << " Candidate " << I << " Count=" << Count
>                   << "  Target_func: " << Target << "\n");
>
> -    if (ICPInvokeOnly && dyn_cast<CallInst>(Inst)) {
> -      DEBUG(dbgs() << " Not promote: User options.\n");
> -      break;
> -    }
> -    if (ICPCallOnly && dyn_cast<InvokeInst>(Inst)) {
> -      DEBUG(dbgs() << " Not promote: User option.\n");
> -      break;
> -    }
>      if (ICPCutOff != 0 && NumOfPGOICallPromotion >= ICPCutOff) {
>        DEBUG(dbgs() << " Not promote: Cutoff reached.\n");
>        break;
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>



-- 
Teresa Johnson |  Software Engineer |  tejohnson at google.com |  408-460-2413
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160717/3d2c06b8/attachment.html>


More information about the llvm-commits mailing list