Skip to content

Commit 8653a04

Browse files
jaladreipsigcbot
authored andcommitted
User function call detection changes
User function call detection changes
1 parent e07d2a4 commit 8653a04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

IGC/Compiler/CISACodeGen/helper.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,10 @@ bool isUserFunctionCall(const llvm::Instruction *I) {
14151415
if (callInst->getCalledFunction()->isIntrinsic() || callInst->getCalledFunction()->isDeclaration())
14161416
return false;
14171417

1418+
// one of the known functions
1419+
if (callInst->hasFnAttr(llvm::Attribute::Builtin))
1420+
return false;
1421+
14181422
// is a call instruction, not an intrinsic and not a declaration - user function call
14191423
return true;
14201424
}

0 commit comments

Comments
 (0)