File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ void GenXCodeGenModule::processFunction(Function& F)
312
312
if (IGC_IS_FLAG_DISABLED (EnableSIMDVariantCompilation))
313
313
{
314
314
int req_subgroup = 0 ;
315
- for (auto FG : CallerFGs)
315
+ for (const auto & FG : CallerFGs)
316
316
{
317
317
auto FHead = FG.first ->getHead ();
318
318
auto subGrpSz = pMdUtils->getFunctionsInfoItem (FHead)->getSubGroupSize ();
@@ -607,7 +607,8 @@ bool GenXCodeGenModule::runOnModule(Module& M)
607
607
}
608
608
609
609
// Clone indirect funcs if SIMD variants are required
610
- FGA->CloneFunctionGroupForMultiSIMDCompile (&M);
610
+ if (IGC_IS_FLAG_ENABLED (EnableSIMDVariantCompilation))
611
+ FGA->CloneFunctionGroupForMultiSIMDCompile (&M);
611
612
612
613
this ->pMdUtils ->save (M.getContext ());
613
614
@@ -997,7 +998,7 @@ void GenXFunctionGroupAnalysis::CloneFunctionGroupForMultiSIMDCompile(llvm::Modu
997
998
if (hasReqdSIMD > 0 )
998
999
{
999
1000
bool ReqMultipleSIMD = hasReqdSIMD != 8 && hasReqdSIMD != 16 && hasReqdSIMD != 32 ;
1000
- if (IGC_IS_FLAG_ENABLED (EnableSIMDVariantCompilation) && ReqMultipleSIMD)
1001
+ if (ReqMultipleSIMD)
1001
1002
{
1002
1003
for (int i = 0 ; i < 3 ; i++)
1003
1004
{
@@ -1023,11 +1024,6 @@ void GenXFunctionGroupAnalysis::CloneFunctionGroupForMultiSIMDCompile(llvm::Modu
1023
1024
}
1024
1025
}
1025
1026
}
1026
- else
1027
- {
1028
- IGC_ASSERT_MESSAGE (!ReqMultipleSIMD, " SIMD variant compilation not supported" );
1029
- continue ;
1030
- }
1031
1027
}
1032
1028
}
1033
1029
You can’t perform that action at this time.
0 commit comments