diff --git a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td --- a/llvm/include/llvm/IR/IntrinsicsAMDGPU.td +++ b/llvm/include/llvm/IR/IntrinsicsAMDGPU.td @@ -1204,7 +1204,7 @@ llvm_i32_ty, // vindex(VGPR) llvm_i32_ty, // offset(SGPR/VGPR/imm) llvm_i1_ty], // slc(imm) - [ImmArg>], "", [SDNPMemOperand]>, + [ImmArg>, IntrWillReturn], "", [SDNPMemOperand]>, AMDGPURsrcIntrinsic<1, 0>; // Legacy form of the intrinsic. raw and struct forms should be preferred. @@ -1289,7 +1289,7 @@ def int_amdgcn_s_setreg : GCCBuiltin<"__builtin_amdgcn_s_setreg">, Intrinsic<[], [llvm_i32_ty, llvm_i32_ty], - [IntrNoMem, IntrHasSideEffects, ImmArg>] + [IntrNoMem, IntrHasSideEffects, IntrWillReturn, ImmArg>] >; // int_amdgcn_s_getpc is provided to allow a specific style of position @@ -1725,7 +1725,7 @@ Intrinsic<[llvm_v4i32_ty], [llvm_anyint_ty, llvm_float_ty, llvm_v4f32_ty, llvm_anyvector_ty, LLVMMatchType<1>, llvm_v4i32_ty], - [IntrReadMem]>; + [IntrReadMem, IntrWillReturn]>; //===----------------------------------------------------------------------===// // Deep learning intrinsics.