SelectionDAG does not allow calls:
- to shaders
- from shaders to functions with calling conventions other than amdgpu_gfx
This patch essentially copies that code into GlobalISel and enables one
of the existing SelectionDAG tests for GlobalISel as well (with a couple
of FIXMEs not tackled in this patch).
It also removes an existing test that was added in
https://reviews.llvm.org/D117479
citing llvm-reduce's penchant for replacing calls to intrinsics with
calls to undef/null (while keeping the default, C calling convention).
That sounds like an important use case, but maybe a better solution for
that problem would be to teach llvm-reduce to replace the whole call
with an undef/null. (Since intrinsics often don't get lowered to calls
at all, replacing an intrinsic with a call would increase complexity rather
than reduce it.)
This shouldn't be dropped