[PATCH] D93934: [Transforms][Utils] remove useless variable

Yifeng Dong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 29 23:04:44 PST 2020


dongAxis1944 created this revision.
dongAxis1944 added a reviewer: loladiro.
Herald added a subscriber: hiraditya.
dongAxis1944 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

variable named Cache does not use anymore in CloneBasicBlock, so we use the patch to remove it


https://reviews.llvm.org/D93934

Files:
  llvm/lib/Transforms/Utils/CloneFunction.cpp


Index: llvm/lib/Transforms/Utils/CloneFunction.cpp
===================================================================
--- llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -41,7 +41,6 @@
                                   const Twine &NameSuffix, Function *F,
                                   ClonedCodeInfo *CodeInfo,
                                   DebugInfoFinder *DIFinder) {
-  DenseMap<const MDNode *, MDNode *> Cache;
   BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F);
   if (BB->hasName())
     NewBB->setName(BB->getName() + NameSuffix);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93934.314073.patch
Type: text/x-patch
Size: 615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201230/7f61960c/attachment.bin>


More information about the llvm-commits mailing list