diff options
| author | Marek Olsak <marek.olsak@amd.com> | 2016-01-13 11:46:10 +0000 |
|---|---|---|
| committer | Marek Olsak <marek.olsak@amd.com> | 2016-01-13 11:46:10 +0000 |
| commit | b6c8c3d165f1f7ca986d07d7114abf92a21a2c4e (patch) | |
| tree | f7a665ccab50a82b00358bfc3809aab4eb7c7f39 /llvm/lib/Target/AMDGPU/SIISelLowering.cpp | |
| parent | fccabaf57e24e6fad0879c13a5e57887e615f5af (diff) | |
| download | bcm5719-llvm-b6c8c3d165f1f7ca986d07d7114abf92a21a2c4e.tar.gz bcm5719-llvm-b6c8c3d165f1f7ca986d07d7114abf92a21a2c4e.zip | |
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
llvm-svn: 257592
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/SIISelLowering.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp index 5959afbcce2..6ba61b28ba2 100644 --- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp +++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp @@ -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 |

