Skip to content

Commit 480cc41

Browse files
authored
AMDGPU/GlobalISel: Handle inreg arguments as SGPRs (#78123)
This is the missing GISel part of 5447017
1 parent a02a0e8 commit 480cc41

File tree

3 files changed

+1247
-4
lines changed

3 files changed

+1247
-4
lines changed

llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -632,10 +632,6 @@ bool AMDGPUCallLowering::lowerFormalArguments(
632632

633633
const bool InReg = Arg.hasAttribute(Attribute::InReg);
634634

635-
// SGPR arguments to functions not implemented.
636-
if (!IsGraphics && InReg)
637-
return false;
638-
639635
if (Arg.hasAttribute(Attribute::SwiftSelf) ||
640636
Arg.hasAttribute(Attribute::SwiftError) ||
641637
Arg.hasAttribute(Attribute::Nest))

0 commit comments

Comments
 (0)