[llvm-commits] CVS: llvm/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Fri Jul 2 00:31:01 PDT 2004


Changes in directory llvm/lib/Transforms/Scalar:

DecomposeMultiDimRefs.cpp updated: 1.31 -> 1.32

---
Log message:

Get rid of a dead variable, and fix a typo in a comment.


---
Diffs of the changes:  (+1 -4)

Index: llvm/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp
diff -u llvm/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp:1.31 llvm/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp:1.32
--- llvm/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp:1.31	Fri Jan  9 00:02:20 2004
+++ llvm/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp	Fri Jul  2 00:30:01 2004
@@ -58,7 +58,7 @@
 // 
 //      opCode CompositeType* P, [uint|ubyte] idx1, ..., [uint|ubyte] idxN
 // 
-// this function generates the foll sequence:
+// this function generates the following sequence:
 // 
 //      ptr1   = getElementPtr P,         idx1
 //      ptr2   = getElementPtr ptr1,   0, idx2
@@ -83,9 +83,6 @@
   Value *LastPtr = GEP->getPointerOperand();
   Instruction *InsertPoint = GEP->getNext(); // Insert before the next insn
 
-  // The vector of new instructions to be created
-  std::vector<Instruction*> NewInsts;
-
   // Process each index except the last one.
   User::const_op_iterator OI = GEP->idx_begin(), OE = GEP->idx_end();
   for (; OI+1 != OE; ++OI) {





More information about the llvm-commits mailing list