Remove BB limit from importer_vectorization (#66534)
authorEgor Bogatov <egorbo@gmail.com>
Mon, 14 Mar 2022 21:05:00 +0000 (00:05 +0300)
committerGitHub <noreply@github.com>
Mon, 14 Mar 2022 21:05:00 +0000 (00:05 +0300)
src/coreclr/jit/importer_vectorization.cpp

index 631e357..ed8e9c5 100644 (file)
@@ -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;