[llvm-commits] [polly] r139096 - /polly/trunk/lib/CodeGeneration.cpp

Tobias Grosser grosser at fim.uni-passau.de
Sun Sep 4 04:45:45 PDT 2011


Author: grosser
Date: Sun Sep  4 06:45:45 2011
New Revision: 139096

URL: http://llvm.org/viewvc/llvm-project?rev=139096&view=rev
Log:
CodeGen: Remove unused code

Modified:
    polly/trunk/lib/CodeGeneration.cpp

Modified: polly/trunk/lib/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGeneration.cpp?rev=139096&r1=139095&r2=139096&view=diff
==============================================================================
--- polly/trunk/lib/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGeneration.cpp Sun Sep  4 06:45:45 2011
@@ -410,15 +410,10 @@
   }
 
   void copyBinInst(const BinaryOperator *Inst, ValueMapT &BBMap,
-                   ValueMapT &vectorMap, VectorValueMapT &scalarMaps,
-                   int vectorDimension, int vectorWidth) {
+                   ValueMapT &vectorMap, int vectorDimension, int vectorWidth) {
     Value *opZero = Inst->getOperand(0);
     Value *opOne = Inst->getOperand(1);
 
-    // This is an old instruction that can be ignored.
-    if (!opZero && !opOne)
-      return;
-
     Value *newOpZero, *newOpOne;
     newOpZero = getOperand(opZero, BBMap, &vectorMap);
     newOpOne = getOperand(opOne, BBMap, &vectorMap);
@@ -535,8 +530,7 @@
 
     if (isVectorBlock() && hasVectorOperands(Inst, vectorMap)) {
       if (const BinaryOperator *binaryInst = dyn_cast<BinaryOperator>(Inst))
-        copyBinInst(binaryInst, BBMap, vectorMap, scalarMaps, vectorDimension,
-                    vectorWidth);
+        copyBinInst(binaryInst, BBMap, vectorMap, vectorDimension, vectorWidth);
       else if (const StoreInst *store = dyn_cast<StoreInst>(Inst))
         copyVectorStore(store, BBMap, vectorMap, scalarMaps, vectorDimension,
                           vectorWidth);





More information about the llvm-commits mailing list