Skip to content

Commit

Permalink
Remove unnecessary MD for poisoned kernels
Browse files Browse the repository at this point in the history
After fp64 poisoning, unnecessary MDs exists in the Module.
This change adds `PurgeMetaDataUtils` pass when fp64 poisoning is used.

(cherry picked from commit 2422fe2)
  • Loading branch information
matborzyszkowski authored and fda0 committed Jun 21, 2024
1 parent 493e17c commit 626c9e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions IGC/AdaptorOCL/UnifyIROCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ static void CommonOCLBasedPasses(
mpm.add(new ErrorCheck());
if (pContext->m_Options.EnableUnsupportedFP64Poisoning) {
mpm.add(new PoisonFP64Kernels());
mpm.add(new PurgeMetaDataUtils());
}

mpm.add(new ImageFuncResolution());
Expand Down

0 comments on commit 626c9e4

Please sign in to comment.