We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feeb833 commit 241a05aCopy full SHA for 241a05a
llvm/lib/Transforms/IPO/PartialInlining.cpp
@@ -1308,8 +1308,8 @@ bool PartialInlinerImpl::tryPartialInline(FunctionCloner &Cloner) {
1308
InstructionCost SizeCost = std::get<0>(OutliningCosts);
1309
InstructionCost NonWeightedRcost = std::get<1>(OutliningCosts);
1310
1311
- if (!SizeCost.isValid() || !NonWeightedRcost.isValid())
1312
- return false;
+ assert(SizeCost.isValid() && NonWeightedRcost.isValid() &&
+ "Expected valid costs");
1313
1314
// Only calculate RelativeToEntryFreq when we are doing single region
1315
// outlining.
0 commit comments