Skip to content

Commit 2422fe2

Browse files
matborzyszkowskiigcbot
authored andcommitted
Remove unnecessary MD for poisoned kernels
After fp64 poisoning, unnecessary MDs exists in the Module. This change adds `PurgeMetaDataUtils` pass when fp64 poisoning is used.
1 parent 0d3debb commit 2422fe2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

IGC/AdaptorOCL/UnifyIROCL.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ static void CommonOCLBasedPasses(
584584
mpm.add(new ErrorCheck());
585585
if (pContext->m_Options.EnableUnsupportedFP64Poisoning) {
586586
mpm.add(new PoisonFP64Kernels());
587+
mpm.add(new PurgeMetaDataUtils());
587588
}
588589

589590
mpm.add(new ImageFuncResolution());

0 commit comments

Comments
 (0)