We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40a982e commit 245ef55Copy full SHA for 245ef55
IGC/VectorCompiler/lib/GenXCodeGen/GenXEmulate.cpp
@@ -1581,10 +1581,13 @@ bool GenXEmulate::runOnModule(Module &M) {
1581
I->eraseFromParent();
1582
ToErase.clear();
1583
1584
+ auto IsOldEmulationFunction = [](const Function *F) {
1585
+ return F->getName().contains("__cm_intrinsic_impl_");
1586
+ };
1587
// Delete unused builtins, make used ones internal.
1588
for (auto I = M.begin(); I != M.end();) {
1589
Function &F = *I++;
- if (isEmulationFunction(&F)) {
1590
+ if (isEmulationFunction(&F) || IsOldEmulationFunction(&F)) {
1591
Changed = true;
1592
if (F.use_empty())
1593
F.eraseFromParent();
0 commit comments