[llvm-commits] [llvm] r44303 - /llvm/trunk/lib/Target/TargetSelectionDAG.td
Chris Lattner
sabre at nondot.org
Sat Nov 24 11:02:07 PST 2007
Author: lattner
Date: Sat Nov 24 13:02:07 2007
New Revision: 44303
URL: http://llvm.org/viewvc/llvm-project?rev=44303&view=rev
Log:
add a immAllZerosV_bc pattern fragment for consistency with others.
Modified:
llvm/trunk/lib/Target/TargetSelectionDAG.td
Modified: llvm/trunk/lib/Target/TargetSelectionDAG.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetSelectionDAG.td?rev=44303&r1=44302&r2=44303&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetSelectionDAG.td (original)
+++ llvm/trunk/lib/Target/TargetSelectionDAG.td Sat Nov 24 13:02:07 2007
@@ -405,15 +405,18 @@
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)>;
More information about the llvm-commits
mailing list