[llvm] r257592 - AMDGPU/SI: Allow any number of PS inputs

Marek Olsak via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 13 03:46:11 PST 2016


Author: mareko
Date: Wed Jan 13 05:46:10 2016
New Revision: 257592

URL: http://llvm.org/viewvc/llvm-project?rev=257592&view=rev
Log:
AMDGPU/SI: Allow any number of PS inputs

Summary:
With the ability to concatenate shader binaries, the limit of 15 no longer
applies.

Reviewers: tstellarAMD, arsenm

Subscribers: arsenm

Differential Revision: http://reviews.llvm.org/D16031

Modified:
    llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp

Modified: llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp?rev=257592&r1=257591&r2=257592&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp Wed Jan 13 05:46:10 2016
@@ -597,9 +597,7 @@ SDValue SITargetLowering::LowerFormalArg
 
     // First check if it's a PS input addr
     if (Info->getShaderType() == ShaderType::PIXEL && !Arg.Flags.isInReg() &&
-        !Arg.Flags.isByVal()) {
-
-      assert((PSInputNum <= 15) && "Too many PS inputs!");
+        !Arg.Flags.isByVal() && PSInputNum <= 15) {
 
       if (!Arg.Used && !Info->isPSInputAllocated(PSInputNum)) {
         // We can safely skip PS inputs




More information about the llvm-commits mailing list