diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-24 19:02:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-24 19:02:07 +0000 |
commit | 8f259c01d3c6253c3c22c7978fccc0b9be8b7ce3 (patch) | |
tree | 228679c10f2bed9f036b1572052368f0de57ad34 /lib/Target | |
parent | d07af04decc249fecdc4f88f743e8c192ff01521 (diff) | |
download | external_llvm-8f259c01d3c6253c3c22c7978fccc0b9be8b7ce3.zip external_llvm-8f259c01d3c6253c3c22c7978fccc0b9be8b7ce3.tar.gz external_llvm-8f259c01d3c6253c3c22c7978fccc0b9be8b7ce3.tar.bz2 |
add a immAllZerosV_bc pattern fragment for consistency with others.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/TargetSelectionDAG.td | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Target/TargetSelectionDAG.td b/lib/Target/TargetSelectionDAG.td index 8a881b9..89a2c94 100644 --- a/lib/Target/TargetSelectionDAG.td +++ b/lib/Target/TargetSelectionDAG.td @@ -405,15 +405,18 @@ def immAllOnes : PatLeaf<(imm), [{ return N->isAllOnesValue(); }]>; def immAllOnesV: PatLeaf<(build_vector), [{ return ISD::isBuildVectorAllOnes(N); }]>; +def immAllOnesV_bc: PatLeaf<(bitconvert), [{ + return ISD::isBuildVectorAllOnes(N); +}]>; def immAllZerosV: PatLeaf<(build_vector), [{ return ISD::isBuildVectorAllZeros(N); }]>; - -def immAllOnesV_bc: PatLeaf<(bitconvert), [{ - return ISD::isBuildVectorAllOnes(N); +def immAllZerosV_bc: PatLeaf<(bitconvert), [{ + return ISD::isBuildVectorAllZeros(N); }]>; + // Other helper fragments. def not : PatFrag<(ops node:$in), (xor node:$in, immAllOnes)>; def vnot : PatFrag<(ops node:$in), (xor node:$in, immAllOnesV)>; |