mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
R600: Relax some vector constraints on Dot4.
Dot4 now uses 8 scalar operands instead of 2 vectors one which allows register coalescer to remove some unneeded COPY. This patch also defines some structures/functions that can be used to handle every vector instructions (CUBE, Cayman special instructions...) in a similar fashion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182126 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -36,8 +36,7 @@ private:
|
||||
case AMDGPU::INTERP_PAIR_XY:
|
||||
case AMDGPU::INTERP_PAIR_ZW:
|
||||
case AMDGPU::INTERP_VEC_LOAD:
|
||||
case AMDGPU::DOT4_eg_pseudo:
|
||||
case AMDGPU::DOT4_r600_pseudo:
|
||||
case AMDGPU::DOT_4:
|
||||
return 4;
|
||||
case AMDGPU::KILL:
|
||||
return 0;
|
||||
@@ -71,8 +70,7 @@ private:
|
||||
case AMDGPU::INTERP_PAIR_ZW:
|
||||
case AMDGPU::INTERP_VEC_LOAD:
|
||||
case AMDGPU::COPY:
|
||||
case AMDGPU::DOT4_eg_pseudo:
|
||||
case AMDGPU::DOT4_r600_pseudo:
|
||||
case AMDGPU::DOT_4:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user