File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -3632,21 +3632,12 @@ void Verifier::visitCallBase(CallBase &Call) {
3632
3632
Check (Callee->getValueType () == FTy,
3633
3633
" Intrinsic called with incompatible signature" , Call);
3634
3634
3635
- // Verify if the calling convention of the callee is callable.
3636
- Check (isCallableCC (Call.getCallingConv ()),
3637
- " calling convention does not permit calls" , Call);
3638
-
3639
3635
// Find the actual CC of the callee from the Module.
3640
3636
CallingConv::ID CalleeCC = Call.getParent ()->getParent ()->getParent ()
3641
3637
->getFunction (Call.getCalledFunction ()->getName ())->getCallingConv ();
3642
- // Verify that a kernel does not call another kernel.
3643
- if (CalleeCC == CallingConv::AMDGPU_KERNEL ||
3644
- CalleeCC == CallingConv::SPIR_KERNEL) {
3645
- CallingConv::ID CallerCC = Call.getParent ()->getParent ()->getCallingConv ();
3646
- Check (CallerCC != CallingConv::AMDGPU_KERNEL &&
3647
- CallerCC != CallingConv::SPIR_KERNEL,
3648
- " a kernel may not call a kernel" , Call.getParent ()->getParent ());
3649
- }
3638
+ // Verify if the calling convention of the callee is callable.
3639
+ Check (isCallableCC (CalleeCC),
3640
+ " calling convention does not permit calls" , Call);
3650
3641
3651
3642
// Disallow passing/returning values with alignment higher than we can
3652
3643
// represent.
You can’t perform that action at this time.
0 commit comments