From: David Majnemer Date: Mon, 20 Jun 2016 16:07:38 +0000 (+0000) Subject: Forgot to update callers of deleteDeadInstruction X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=774279ad5390ceb7ed6370674cd0e3176fb3e2ef;p=llvm Forgot to update callers of deleteDeadInstruction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273163 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/lib/Transforms/Scalar/LoopIdiomRecognize.cpp index d75dbb47771..17985e06a6b 100644 --- a/lib/Transforms/Scalar/LoopIdiomRecognize.cpp +++ b/lib/Transforms/Scalar/LoopIdiomRecognize.cpp @@ -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; }