]> granicus.if.org Git - llvm/commitdiff
Forgot to update callers of deleteDeadInstruction
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 20 Jun 2016 16:07:38 +0000 (16:07 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 20 Jun 2016 16:07:38 +0000 (16:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273163 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopIdiomRecognize.cpp

index d75dbb47771f310d588b02768cbfa63481027a4a..17985e06a6b68fc5f6cbbaea99ec52f131216100 100644 (file)
@@ -782,7 +782,7 @@ bool LoopIdiomRecognize::processLoopStridedStore(
   // Okay, the memset has been formed.  Zap the original store and anything that
   // feeds into it.
   for (auto *I : Stores)
-    deleteDeadInstruction(I, TLI);
+    deleteDeadInstruction(I);
   ++NumMemSet;
   return true;
 }
@@ -891,7 +891,7 @@ bool LoopIdiomRecognize::processLoopStoreOfLoopLoad(StoreInst *SI,
 
   // Okay, the memcpy has been formed.  Zap the original store and anything that
   // feeds into it.
-  deleteDeadInstruction(SI, TLI);
+  deleteDeadInstruction(SI);
   ++NumMemCpy;
   return true;
 }