AMDGPU: Fix assert with indirect call with known required inputs
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 14 Sep 2021 01:52:07 +0000 (21:52 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 14 Sep 2021 02:54:11 +0000 (22:54 -0400)
commitc305513cc2253724e60ec5c64eb059ee400b73b7
treef4266c24698f7a48dbe77e81253eb692138d6e0d
parent2bd84938470bf2e337801faafb8a67710f46429d
AMDGPU: Fix assert with indirect call with known required inputs

The attributor can determine that some indirect calls do not require
special inputs. The special inputs will still be present in the ABI,
so we need to allocate the registers and pass undefs.
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/indirect-call-known-callees.ll [new file with mode: 0644]