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

Gabor Greif ggreif at gmail.com
Wed Apr 7 08:26:22 PDT 2010


Author: ggreif
Date: Wed Apr  7 10:26:22 2010
New Revision: 100623

URL: http://llvm.org/viewvc/llvm-project?rev=100623&view=rev
Log:
operand of free is in position 0

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=100623&r1=100622&r2=100623&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 10:26:22 2010
@@ -287,7 +287,7 @@
 
 /// handleFreeWithNonTrivialDependency - Handle frees of entire structures whose
 /// dependency is a store to a field of that structure.
-bool DSE::handleFreeWithNonTrivialDependency(Instruction *F, MemDepResult Dep) {
+bool DSE::handleFreeWithNonTrivialDependency(/*FIXME: Call*/Instruction *F, MemDepResult Dep) {
   AliasAnalysis &AA = getAnalysis<AliasAnalysis>();
   
   Instruction *Dependency = Dep.getInst();
@@ -297,7 +297,7 @@
   Value *DepPointer = getPointerOperand(Dependency)->getUnderlyingObject();
 
   // Check for aliasing.
-  if (AA.alias(F->getOperand(1), 1, DepPointer, 1) !=
+  if (AA.alias(F->getOperand(0), 1, DepPointer, 1) !=
          AliasAnalysis::MustAlias)
     return false;
   





More information about the llvm-branch-commits mailing list