Skip to content

Commit

Permalink
Remove BB limit from importer_vectorization (dotnet#66534)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo authored and radekdoulik committed Mar 30, 2022
1 parent be40f94 commit b04fa56
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/coreclr/jit/importer_vectorization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,14 +484,6 @@ GenTree* Compiler::impExpandHalfConstEquals(GenTreeLclVar* data,
return nullptr;
}

if ((compIsForInlining() ? (fgBBcount + impInlineRoot()->fgBBcount) : (fgBBcount)) > 20)
{
// We don't want to unroll too much and in big methods
// TODO-Unroll-CQ: come up with some better heuristic/budget
JITDUMP("impExpandHalfConstEquals: method has too many BBs (>20) - not profitable to expand.\n");
return nullptr;
}

const genTreeOps cmpOp = startsWith ? GT_GE : GT_EQ;
GenTree* elementsCount = gtNewIconNode(len);
GenTree* lenCheckNode;
Expand Down

0 comments on commit b04fa56

Please sign in to comment.