Skip to content

Commit 241a05a

Browse files
authored
Revert "[Inliner] Fix bugs for partial inlining with vector"
This reverts commit 0a5e572, since I forgot to start a pull request.
1 parent feeb833 commit 241a05a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/IPO/PartialInlining.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,8 +1308,8 @@ bool PartialInlinerImpl::tryPartialInline(FunctionCloner &Cloner) {
13081308
InstructionCost SizeCost = std::get<0>(OutliningCosts);
13091309
InstructionCost NonWeightedRcost = std::get<1>(OutliningCosts);
13101310

1311-
if (!SizeCost.isValid() || !NonWeightedRcost.isValid())
1312-
return false;
1311+
assert(SizeCost.isValid() && NonWeightedRcost.isValid() &&
1312+
"Expected valid costs");
13131313

13141314
// Only calculate RelativeToEntryFreq when we are doing single region
13151315
// outlining.

0 commit comments

Comments
 (0)