From: Devang Patel Date: Tue, 4 Mar 2008 17:48:11 +0000 (+0000) Subject: Increment counter that keeps track of total number of sret promoted. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=df1d15c52ebdb3fa6826d56dda231952f495b30f;p=oota-llvm.git Increment counter that keeps track of total number of sret promoted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47892 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/StructRetPromotion.cpp b/lib/Transforms/IPO/StructRetPromotion.cpp index feb5be64f81..41438d7fe61 100644 --- a/lib/Transforms/IPO/StructRetPromotion.cpp +++ b/lib/Transforms/IPO/StructRetPromotion.cpp @@ -94,6 +94,7 @@ bool SRETPromotion::PromoteReturn(CallGraphNode *CGN) { return false; } + NumSRET++; // [1] Replace use of sret parameter AllocaInst *TheAlloca = new AllocaInst (STy, NULL, "mrv", F->getEntryBlock().begin());