[llvm-commits] [poolalloc] r126028 - /poolalloc/trunk/lib/AssistDS/MergeGEP.cpp

Arushi Aggarwal aggarwa4 at illinois.edu
Sat Feb 19 05:33:26 PST 2011


Author: aggarwa4
Date: Sat Feb 19 07:33:26 2011
New Revision: 126028

URL: http://llvm.org/viewvc/llvm-project?rev=126028&view=rev
Log:
Merge GEPs even if they are not arrays.
Helps in some cases.

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

Modified: poolalloc/trunk/lib/AssistDS/MergeGEP.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/MergeGEP.cpp?rev=126028&r1=126027&r2=126028&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/MergeGEP.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/MergeGEP.cpp Sat Feb 19 07:33:26 2011
@@ -42,8 +42,8 @@
             if(!(isa<GetElementPtrInst>(I)))
               continue;
             GetElementPtrInst *GEP = cast<GetElementPtrInst>(I);
-            if(!isa<ArrayType>(GEP->getType()->getElementType()))
-              continue;
+        //    if(!isa<ArrayType>(GEP->getType()->getElementType()))
+         //     continue;
                   std::vector<GetElementPtrInst*> worklist;
                   for (Value::use_iterator UI = GEP->use_begin(),
                                      UE = GEP->use_end(); UI != UE; ++UI){





More information about the llvm-commits mailing list