Skip to content

Commit 0dbbe79

Browse files
dlei6gsys_zuul
authored andcommitted
Internal Changes
Change-Id: I6ccd9fba065e79e7215da2d94a8c2c397a6d8b5d
1 parent a6b38a0 commit 0dbbe79

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

IGC/AdaptorCommon/ProcessFuncAttributes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ bool ProcessFuncAttributes::runOnModule(Module& M)
226226
// Require global relocation if any global values are used in indirect functions, since we cannot pass implicit args
227227
F->addFnAttr("EnableGlobalRelocation");
228228

229-
if (IGC_GET_FLAG_VALUE(FunctionControl) == FLAG_FCALL_FORCE_INDIRECTCALL)
229+
if (F->hasFnAttribute("IFCALL_BUILTIN") ||
230+
IGC_GET_FLAG_VALUE(FunctionControl) == FLAG_FCALL_FORCE_INDIRECTCALL)
230231
{
231232
F->removeFnAttr(llvm::Attribute::AlwaysInline);
232233
F->addFnAttr(llvm::Attribute::NoInline);

IGC/Compiler/Optimizer/BuiltInFuncImport.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3131
#include "common/LLVMWarningsPush.hpp"
3232
#include "llvmWrapper/IR/Attributes.h"
3333
#include <llvmWrapper/IR/Function.h>
34+
#include <llvm/IR/CallSite.h>
3435
#include <llvm/IR/Module.h>
3536
#include <llvm/IR/Instruction.h>
3637
#include <llvm/IR/InstIterator.h>

0 commit comments

Comments
 (0)