diff --git a/llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp index 3fd5c8de39ce..7f1b92698b12 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp @@ -88,6 +88,9 @@ void AMDGPUCallLowering::lowerParameter(MachineIRBuilder &MIRBuilder, bool AMDGPUCallLowering::lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F, ArrayRef VRegs) const { + // AMDGPU_GS is not supported yet. + if (F.getCallingConv() == CallingConv::AMDGPU_GS) + return false; MachineFunction &MF = MIRBuilder.getMF(); const SISubtarget *Subtarget = static_cast(&MF.getSubtarget());