File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,8 @@ bool ProcessFuncAttributes::runOnModule(Module& M)
226
226
// Require global relocation if any global values are used in indirect functions, since we cannot pass implicit args
227
227
F->addFnAttr (" EnableGlobalRelocation" );
228
228
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)
230
231
{
231
232
F->removeFnAttr (llvm::Attribute::AlwaysInline);
232
233
F->addFnAttr (llvm::Attribute::NoInline);
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
31
#include " common/LLVMWarningsPush.hpp"
32
32
#include " llvmWrapper/IR/Attributes.h"
33
33
#include < llvmWrapper/IR/Function.h>
34
+ #include < llvm/IR/CallSite.h>
34
35
#include < llvm/IR/Module.h>
35
36
#include < llvm/IR/Instruction.h>
36
37
#include < llvm/IR/InstIterator.h>
You can’t perform that action at this time.
0 commit comments