[llvm-commits] [poolalloc] r128972 - /poolalloc/trunk/lib/AssistDS/SimplifyGEP.cpp

Arushi Aggarwal aggarwa4 at illinois.edu
Tue Apr 5 18:10:35 PDT 2011


Author: aggarwa4
Date: Tue Apr  5 20:10:34 2011
New Revision: 128972

URL: http://llvm.org/viewvc/llvm-project?rev=128972&view=rev
Log:
Added more comments, and renamed the pass.

Modified:
    poolalloc/trunk/lib/AssistDS/SimplifyGEP.cpp

Modified: poolalloc/trunk/lib/AssistDS/SimplifyGEP.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/SimplifyGEP.cpp?rev=128972&r1=128971&r2=128972&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/SimplifyGEP.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/SimplifyGEP.cpp Tue Apr  5 20:10:34 2011
@@ -12,7 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 
-#define DEBUG_TYPE "simplifygep"
+#define DEBUG_TYPE "simplify-gep"
 
 #include "llvm/Instructions.h"
 #include "llvm/Module.h"
@@ -30,6 +30,21 @@
 using namespace llvm;
 
 namespace {
+    //
+    // Method: preprocess()
+    //
+    // Description:
+    //  %p = bitcast %p1 to T1
+    //  gep(%p) ...
+    // ->
+    //  gep (bitcast %p1 to T1), ...
+    //
+    // Inputs:
+    //  M - A reference to the LLVM module to process
+    //
+    // Outputs:
+    //  M - The transformed LLVM module.
+    //
   static void preprocess(Module& M) {
     for (Module::iterator F = M.begin(); F != M.end(); ++F){
       for (Function::iterator B = F->begin(), FE = F->end(); B != FE; ++B) {      
@@ -219,4 +234,4 @@
 
 // Register the pass
 static RegisterPass<SimplifyGEP>
-X("simplifygep", "Simplify GEPs");
+X("simplify-gep", "Simplify GEPs");





More information about the llvm-commits mailing list