[llvm] [AMDGPU] Allow shinking instruction with dead sdst (PR #68028)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 3 02:14:27 PDT 2023


jayfoad wrote:

> There are some other instructions which will not be shrunk after RA however, because now more instructions will clobber VCC, and if the carry is used after such clobber then RA has no choice but to allocate a non-VCC SGPR.

My gut feeling is that we should leave this to the register allocator, instead of forcing dead dsts to use vcc. But I can't argue with the numbers - if it really does make the code smaller on average then I won't object. I would like to test it on some graphics shaders first though.

https://github.com/llvm/llvm-project/pull/68028


More information about the llvm-commits mailing list