[llvm] 4b15fc9 - [NFC][MLInliner] Don't initialize in an assert.

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 9 09:56:21 PDT 2020


Author: Mircea Trofin
Date: 2020-09-09T09:56:07-07:00
New Revision: 4b15fc9ddb4d9702a1466e9c0db44d692d1531fb

URL: https://github.com/llvm/llvm-project/commit/4b15fc9ddb4d9702a1466e9c0db44d692d1531fb
DIFF: https://github.com/llvm/llvm-project/commit/4b15fc9ddb4d9702a1466e9c0db44d692d1531fb.diff

LOG: [NFC][MLInliner] Don't initialize in an assert.

Since the build bots have assertions enabled, this flew under the radar.

Added: 
    

Modified: 
    llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp b/llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp
index dc426aaccb22..5c3a6c41ad43 100644
--- a/llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp
+++ b/llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp
@@ -171,7 +171,7 @@ unsigned getMaxDominatorTreeDepth(const Function &F,
 IRToNativeSizeLearning::FunctionFeatures
 IRToNativeSizeLearning::getFunctionFeatures(Function &F,
                                             FunctionAnalysisManager &FAM) {
-  assert(ensureSortedTuples() && "expected lazy initialization");
+  ensureSortedTuples();
 
   auto &DomTree = FAM.getResult<DominatorTreeAnalysis>(F);
   FunctionFeatures FF;


        


More information about the llvm-commits mailing list