diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-03-26 09:52:32 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-03-26 09:52:32 +0000 |
commit | 5b6a01b59c570a32baeab52f7080e6bf1739926a (patch) | |
tree | 462cb983b745c7679594d53d0faa5a28651247ae /lib/Target/PowerPC/PPCInstrAltivec.td | |
parent | e506f9ae350337dbc1044e09eb55dbbc8785724b (diff) | |
download | llvm-5b6a01b59c570a32baeab52f7080e6bf1739926a.tar.gz llvm-5b6a01b59c570a32baeab52f7080e6bf1739926a.tar.bz2 llvm-5b6a01b59c570a32baeab52f7080e6bf1739926a.tar.xz |
Remove PPC:isZeroVector, use ISD::isBuildVectorAllZeros instead
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27149 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrAltivec.td')
-rw-r--r-- | lib/Target/PowerPC/PPCInstrAltivec.td | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/Target/PowerPC/PPCInstrAltivec.td b/lib/Target/PowerPC/PPCInstrAltivec.td index b955e014bd..1c3057d884 100644 --- a/lib/Target/PowerPC/PPCInstrAltivec.td +++ b/lib/Target/PowerPC/PPCInstrAltivec.td @@ -24,10 +24,6 @@ def VSPLT_shuffle_mask : PatLeaf<(build_vector), [{ return PPC::isSplatShuffleMask(N); }], VSPLT_get_imm>; -def vecimm0 : PatLeaf<(build_vector), [{ - return PPC::isZeroVector(N); -}]>; - // VSPLTISB_get_imm xform function: convert build_vector to VSPLTISB imm. def VSPLTISB_get_imm : SDNodeXForm<build_vector, [{ @@ -404,7 +400,7 @@ def VCMPGTUWo : VXRForm_1<646, (ops VRRC:$vD, VRRC:$vA, VRRC:$vB), def V_SET0 : VXForm_setzero<1220, (ops VRRC:$vD), "vxor $vD, $vD, $vD", VecFP, - [(set VRRC:$vD, (v4f32 vecimm0))]>; + [(set VRRC:$vD, (v4f32 immAllZerosV))]>; } //===----------------------------------------------------------------------===// @@ -415,9 +411,9 @@ def V_SET0 : VXForm_setzero<1220, (ops VRRC:$vD), def : Pat<(v16i8 (undef)), (v16i8 (IMPLICIT_DEF_VRRC))>; def : Pat<(v8i16 (undef)), (v8i16 (IMPLICIT_DEF_VRRC))>; def : Pat<(v4i32 (undef)), (v4i32 (IMPLICIT_DEF_VRRC))>; -def : Pat<(v16i8 vecimm0), (v16i8 (V_SET0))>; -def : Pat<(v8i16 vecimm0), (v8i16 (V_SET0))>; -def : Pat<(v4i32 vecimm0), (v4i32 (V_SET0))>; +def : Pat<(v16i8 immAllZerosV), (v16i8 (V_SET0))>; +def : Pat<(v8i16 immAllZerosV), (v8i16 (V_SET0))>; +def : Pat<(v4i32 immAllZerosV), (v4i32 (V_SET0))>; // Loads. def : Pat<(v16i8 (load xoaddr:$src)), (v16i8 (LVX xoaddr:$src))>; |