summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-15 23:39:14 +0000
committerChris Lattner <sabre@nondot.org>2006-04-15 23:39:14 +0000
commit41df12ff4cae24e797c37838336ef9cd626bed3e (patch)
tree4259224623ab43f7a79c28fab11e4f23a2f8f6ef /llvm/lib
parent7e7ad593cc4ad34051de68d18eabda717b9b5d8d (diff)
downloadbcm5719-llvm-41df12ff4cae24e797c37838336ef9cd626bed3e.tar.gz
bcm5719-llvm-41df12ff4cae24e797c37838336ef9cd626bed3e.zip
Add a new vnot_conv predicate for matching vnot's where the allones vector is
bitconverted from some other type. llvm-svn: 27724
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/TargetSelectionDAG.td6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetSelectionDAG.td b/llvm/lib/Target/TargetSelectionDAG.td
index 02608409749..40a4a97d077 100644
--- a/llvm/lib/Target/TargetSelectionDAG.td
+++ b/llvm/lib/Target/TargetSelectionDAG.td
@@ -394,9 +394,15 @@ def immAllZerosV: PatLeaf<(build_vector), [{
return ISD::isBuildVectorAllZeros(N);
}]>;
+def immAllOnesV_bc: PatLeaf<(bitconvert), [{
+ return ISD::isBuildVectorAllOnes(N);
+}]>;
+
+
// Other helper fragments.
def not : PatFrag<(ops node:$in), (xor node:$in, immAllOnes)>;
def vnot : PatFrag<(ops node:$in), (xor node:$in, immAllOnesV)>;
+def vnot_conv : PatFrag<(ops node:$in), (xor node:$in, immAllOnesV_bc)>;
def ineg : PatFrag<(ops node:$in), (sub 0, node:$in)>;
// extending load & truncstore fragments.
OpenPOWER on IntegriCloud