mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
R600: Don't unnecessarily repeat the register class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221119 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
37b154c175
commit
b6c9c729dd
@ -475,13 +475,13 @@ class ExportBufWord1 {
|
||||
multiclass ExportPattern<Instruction ExportInst, bits<8> cf_inst> {
|
||||
def : Pat<(int_R600_store_pixel_depth R600_Reg32:$reg),
|
||||
(ExportInst
|
||||
(INSERT_SUBREG (v4f32 (IMPLICIT_DEF)), R600_Reg32:$reg, sub0),
|
||||
(INSERT_SUBREG (v4f32 (IMPLICIT_DEF)), $reg, sub0),
|
||||
0, 61, 0, 7, 7, 7, cf_inst, 0)
|
||||
>;
|
||||
|
||||
def : Pat<(int_R600_store_pixel_stencil R600_Reg32:$reg),
|
||||
(ExportInst
|
||||
(INSERT_SUBREG (v4f32 (IMPLICIT_DEF)), R600_Reg32:$reg, sub0),
|
||||
(INSERT_SUBREG (v4f32 (IMPLICIT_DEF)), $reg, sub0),
|
||||
0, 61, 7, 0, 7, 7, cf_inst, 0)
|
||||
>;
|
||||
|
||||
@ -513,17 +513,17 @@ multiclass SteamOutputExportPattern<Instruction ExportInst,
|
||||
// Stream1
|
||||
def : Pat<(int_R600_store_stream_output (v4f32 R600_Reg128:$src),
|
||||
(i32 imm:$arraybase), (i32 1), (i32 imm:$mask)),
|
||||
(ExportInst R600_Reg128:$src, 0, imm:$arraybase,
|
||||
(ExportInst $src, 0, imm:$arraybase,
|
||||
4095, imm:$mask, buf1inst, 0)>;
|
||||
// Stream2
|
||||
def : Pat<(int_R600_store_stream_output (v4f32 R600_Reg128:$src),
|
||||
(i32 imm:$arraybase), (i32 2), (i32 imm:$mask)),
|
||||
(ExportInst R600_Reg128:$src, 0, imm:$arraybase,
|
||||
(ExportInst $src, 0, imm:$arraybase,
|
||||
4095, imm:$mask, buf2inst, 0)>;
|
||||
// Stream3
|
||||
def : Pat<(int_R600_store_stream_output (v4f32 R600_Reg128:$src),
|
||||
(i32 imm:$arraybase), (i32 3), (i32 imm:$mask)),
|
||||
(ExportInst R600_Reg128:$src, 0, imm:$arraybase,
|
||||
(ExportInst $src, 0, imm:$arraybase,
|
||||
4095, imm:$mask, buf3inst, 0)>;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user