Skip to content

Commit c2b4527

Browse files
adam-bzowskiigcbot
authored andcommitted
Remove "cutlass" string parse
This removes the workaround that ignores the value of VectorAliasBBThreshold if the kernel's name contains the strings "_Z" and "cutlass".
1 parent 2eabaa1 commit c2b4527

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

IGC/Compiler/CISACodeGen/VariableReuseAnalysis.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,12 +1168,7 @@ void VariableReuseAnalysis::InsertElementAliasing(Function* F)
11681168
// =0x2: subvec aliasing for both isolated and non-isolated value)
11691169
const auto control = (m_pCtx->getVectorCoalescingControl() & 0x3);
11701170
// To avoid increasing GRF pressure, skip if F is too large or not an entry
1171-
// We remove the threshold when the code comes from CUTLASS,
1172-
// which often generates a large number of basic blocks.
1173-
const int32_t NumBBThreshold =
1174-
F->getName().str().substr(0, 2) == "_Z" && F->getName().str().find("cutlass") != std::string::npos
1175-
? std::numeric_limits<int32_t>::max()
1176-
: static_cast<int32_t>(IGC_GET_FLAG_VALUE(VectorAliasBBThreshold));
1171+
const int32_t NumBBThreshold = IGC_GET_FLAG_VALUE(VectorAliasBBThreshold);
11771172
MetaDataUtils* pMdUtils = getAnalysis<MetaDataUtilsWrapper>().getMetaDataUtils();
11781173
if (control == 0 || !isEntryFunc(pMdUtils, F) || getNumBBs(F) > NumBBThreshold) {
11791174
return;

0 commit comments

Comments
 (0)