[PATCH] D51794: AMDGPU: Don't error on calls to null or undef

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 8 08:23:23 PDT 2018


rampitec added a comment.

In https://reviews.llvm.org/D51794#1228202, @arsenm wrote:

> HCC had a bug recently that was producing calls to under. I assume a call to null would appear for a pure virtual call. They are undefined to execute, but they could appear in dead code that is never reached so it’s not an error to have them exist


A standard reaction to pure virtual call is a runtime error message and abort. We cannot produce an error message from kernel but we can abort. I would suggest to lower it to s_trap.


https://reviews.llvm.org/D51794





More information about the llvm-commits mailing list