[PATCH] D148305: remove useless call in MIRSampleProfile.cpp

Wang, Xin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 13 23:26:14 PDT 2023


XinWang10 created this revision.
Herald added subscribers: wenlei, hiraditya.
Herald added a project: All.
XinWang10 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This call getSummary returns a value but nobody take
it.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148305

Files:
  llvm/lib/CodeGen/MIRSampleProfile.cpp


Index: llvm/lib/CodeGen/MIRSampleProfile.cpp
===================================================================
--- llvm/lib/CodeGen/MIRSampleProfile.cpp
+++ llvm/lib/CodeGen/MIRSampleProfile.cpp
@@ -274,7 +274,6 @@
   Reader = std::move(ReaderOrErr.get());
   Reader->setModule(&M);
   ProfileIsValid = (Reader->read() == sampleprof_error::success);
-  Reader->getSummary();
 
   return true;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148305.513445.patch
Type: text/x-patch
Size: 398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230414/bb0714a3/attachment.bin>


More information about the llvm-commits mailing list