[llvm-commits] [llvm] r47892 - /llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp
Devang Patel
dpatel at apple.com
Tue Mar 4 09:48:12 PST 2008
Author: dpatel
Date: Tue Mar 4 11:48:11 2008
New Revision: 47892
URL: http://llvm.org/viewvc/llvm-project?rev=47892&view=rev
Log:
Increment counter that keeps track of total number of sret promoted.
Modified:
llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp
Modified: llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp?rev=47892&r1=47891&r2=47892&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/StructRetPromotion.cpp Tue Mar 4 11:48:11 2008
@@ -94,6 +94,7 @@
return false;
}
+ NumSRET++;
// [1] Replace use of sret parameter
AllocaInst *TheAlloca = new AllocaInst (STy, NULL, "mrv",
F->getEntryBlock().begin());
More information about the llvm-commits
mailing list