From a629351839d146b444b894380db2bed707a59c93 Mon Sep 17 00:00:00 2001 From: EgorBo Date: Sat, 12 Mar 2022 11:53:31 +0300 Subject: [PATCH] Remove BB limit from importer_vectorization --- src/coreclr/jit/importer_vectorization.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/coreclr/jit/importer_vectorization.cpp b/src/coreclr/jit/importer_vectorization.cpp index 631e3577ba5104..ed8e9c57526afa 100644 --- a/src/coreclr/jit/importer_vectorization.cpp +++ b/src/coreclr/jit/importer_vectorization.cpp @@ -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;