P4 to Git Change 1083322 by yaxunl@yaxunl_stg_win50 on 2014/10/01 16:00:22
ECR #377625 - AMDIL Function support: allow functions without names to be not inlined.
Affected files ...
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#114 edit
[ROCm/clr commit: 26ad0e1a8e]
This commit is contained in:
@@ -223,8 +223,7 @@ AddNoInlineAttr(llvm::Module* M)
|
||||
{
|
||||
LLVMContext &Context = M->getContext();
|
||||
for (llvm::Module::iterator I = M->begin(), E = M->end(); I != E; ++I) {
|
||||
if (I->hasName() &&
|
||||
!I->isDeclaration() &&
|
||||
if (!I->isDeclaration() &&
|
||||
!I->isIntrinsic() &&
|
||||
!I->getName().startswith("__amdil") &&
|
||||
!I->getFnAttributes().hasAttribute(Attributes::AlwaysInline) &&
|
||||
|
||||
Reference in New Issue
Block a user