[llvm] 9fa721c - remove useless call in MIRSampleProfile.cpp

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 17 01:18:47 PDT 2023


Author: Wang, Xin10
Date: 2023-04-17T04:14:28-04:00
New Revision: 9fa721c7c65f3fd74b6db78db830f88abf00ad4d

URL: https://github.com/llvm/llvm-project/commit/9fa721c7c65f3fd74b6db78db830f88abf00ad4d
DIFF: https://github.com/llvm/llvm-project/commit/9fa721c7c65f3fd74b6db78db830f88abf00ad4d.diff

LOG: remove useless call in MIRSampleProfile.cpp

This call getSummary returns a value but nobody take
it.

Reviewed By: skan

Differential Revision: https://reviews.llvm.org/D148305

Added: 
    

Modified: 
    llvm/lib/CodeGen/MIRSampleProfile.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/MIRSampleProfile.cpp b/llvm/lib/CodeGen/MIRSampleProfile.cpp
index a821ad4ccea4c..2eb29a7860eb7 100644
--- a/llvm/lib/CodeGen/MIRSampleProfile.cpp
+++ b/llvm/lib/CodeGen/MIRSampleProfile.cpp
@@ -274,7 +274,6 @@ bool MIRProfileLoader::doInitialization(Module &M) {
   Reader = std::move(ReaderOrErr.get());
   Reader->setModule(&M);
   ProfileIsValid = (Reader->read() == sampleprof_error::success);
-  Reader->getSummary();
 
   return true;
 }


        


More information about the llvm-commits mailing list