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