[PM/AA] Completely remove the AliasAnalysis::copyValue interface.
[oota-llvm.git] / lib / Transforms / IPO / ArgumentPromotion.cpp
index f7543632825299a7441f917798c49edc9742a763..4762011d63d8c390cd3e82656f06bc292d70860a 100644 (file)
@@ -825,7 +825,6 @@ CallGraphNode *ArgPromotion::DoPromotion(Function *F,
             V = GetElementPtrInst::Create(SI->first, V, Ops,
                                           V->getName() + ".idx", Call);
             Ops.clear();
-            AA.copyValue(OrigLoad->getOperand(0), V);
           }
           // Since we're replacing a load make sure we take the alignment
           // of the previous load.
@@ -837,7 +836,6 @@ CallGraphNode *ArgPromotion::DoPromotion(Function *F,
           newLoad->setAAMetadata(AAInfo);
 
           Args.push_back(newLoad);
-          AA.copyValue(OrigLoad, Args.back());
         }
       }