AMDGPU/SI: Allow any number of PS inputs
[oota-llvm.git] / lib / Target / AMDGPU / SIISelLowering.cpp
index 5959afbcce2a42a366007e258b4a2e74aeed4074..6ba61b28ba295f260863f15b03f41d40a11739d7 100644 (file)
@@ -597,9 +597,7 @@ SDValue SITargetLowering::LowerFormalArguments(
 
     // 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