[llvm-branch-commits] [llvm-branch] r100614 - /llvm/branches/ggreif/CallInst-operands/lib/Transforms/Scalar/DeadStoreElimination.cpp

Gabor Greif ggreif at gmail.com
Wed Apr 7 02:14:12 PDT 2010


Author: ggreif
Date: Wed Apr  7 04:14:12 2010
New Revision: 100614

URL: http://llvm.org/viewvc/llvm-project?rev=100614&view=rev
Log:
shift operands

Modified:
    llvm/branches/ggreif/CallInst-operands/lib/Transforms/Scalar/DeadStoreElimination.cpp

Modified: llvm/branches/ggreif/CallInst-operands/lib/Transforms/Scalar/DeadStoreElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/lib/Transforms/Scalar/DeadStoreElimination.cpp?rev=100614&r1=100613&r2=100614&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/lib/Transforms/Scalar/DeadStoreElimination.cpp (original)
+++ llvm/branches/ggreif/CallInst-operands/lib/Transforms/Scalar/DeadStoreElimination.cpp Wed Apr  7 04:14:12 2010
@@ -123,14 +123,14 @@
   if (StoreInst *SI = dyn_cast<StoreInst>(I))
     return SI->getPointerOperand();
   if (MemIntrinsic *MI = dyn_cast<MemIntrinsic>(I))
-    return MI->getOperand(1);
+    return MI->getOperand(0);
   
   switch (cast<IntrinsicInst>(I)->getIntrinsicID()) {
   default: assert(false && "Unexpected intrinsic!");
   case Intrinsic::init_trampoline:
-    return I->getOperand(1);
+    return I->getOperand(0);
   case Intrinsic::lifetime_end:
-    return I->getOperand(2);
+    return I->getOperand(1);
   }
 }
 
@@ -152,7 +152,7 @@
     case Intrinsic::init_trampoline:
       return -1u;
     case Intrinsic::lifetime_end:
-      Len = I->getOperand(1);
+      Len = I->getOperand(0);
       break;
     }
   }





More information about the llvm-branch-commits mailing list