diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-02-26 23:00:58 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-02-26 23:00:58 +0000 |
| commit | 530dde4386347c8c3b5497ab308db52498a05fcb (patch) | |
| tree | 6a8441fc059a8c7510198678345af7dedbb96356 | |
| parent | 19e1135108386b42f8519f72b8b062c80a6d48b1 (diff) | |
| download | bcm5719-llvm-530dde4386347c8c3b5497ab308db52498a05fcb.tar.gz bcm5719-llvm-530dde4386347c8c3b5497ab308db52498a05fcb.zip | |
R600: Remove unnecessary build_vector pattern.
It is already fully handled in AMDGPUISelDAGToDAG.
llvm-svn: 202312
| -rw-r--r-- | llvm/lib/Target/R600/AMDGPUInstructions.td | 8 | ||||
| -rw-r--r-- | llvm/lib/Target/R600/R600Instructions.td | 3 |
2 files changed, 1 insertions, 10 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUInstructions.td b/llvm/lib/Target/R600/AMDGPUInstructions.td index 7acd67313ee..4a9d92caf93 100644 --- a/llvm/lib/Target/R600/AMDGPUInstructions.td +++ b/llvm/lib/Target/R600/AMDGPUInstructions.td @@ -322,7 +322,7 @@ class POW_Common <AMDGPUInst log_ieee, AMDGPUInst exp_ieee, AMDGPUInst mul> /* --------------------- */ /* Extract element pattern */ -class Extract_Element <ValueType sub_type, ValueType vec_type, int sub_idx, +class Extract_Element <ValueType sub_type, ValueType vec_type, int sub_idx, SubRegIndex sub_reg> : Pat< (sub_type (vector_extract vec_type:$src, sub_idx)), @@ -337,12 +337,6 @@ class Insert_Element <ValueType elem_type, ValueType vec_type, (INSERT_SUBREG $vec, $elem, sub_reg) >; -class Vector4_Build <ValueType vecType, ValueType elemType> : Pat < - (vecType (build_vector elemType:$x, elemType:$y, elemType:$z, elemType:$w)), - (INSERT_SUBREG (INSERT_SUBREG (INSERT_SUBREG (INSERT_SUBREG - (vecType (IMPLICIT_DEF)), $x, sub0), $y, sub1), $z, sub2), $w, sub3) ->; - // XXX: Convert to new syntax and use COPY_TO_REG, once the DFAPacketizer // can handle COPY instructions. // bitconvert pattern diff --git a/llvm/lib/Target/R600/R600Instructions.td b/llvm/lib/Target/R600/R600Instructions.td index f7b7488d69c..d06dc1aabdf 100644 --- a/llvm/lib/Target/R600/R600Instructions.td +++ b/llvm/lib/Target/R600/R600Instructions.td @@ -2375,9 +2375,6 @@ def : Insert_Element <i32, v4i32, 1, sub1>; def : Insert_Element <i32, v4i32, 2, sub2>; def : Insert_Element <i32, v4i32, 3, sub3>; -def : Vector4_Build <v4f32, f32>; -def : Vector4_Build <v4i32, i32>; - def : Extract_Element <f32, v2f32, 0, sub0>; def : Extract_Element <f32, v2f32, 1, sub1>; |

