Eliminate some uses of immAllOnes, just use -1, it does
authorChris Lattner <sabre@nondot.org>
Sun, 21 Feb 2010 03:13:10 +0000 (03:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 21 Feb 2010 03:13:10 +0000 (03:13 +0000)
the same thing and is more efficient for the matcher.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96713 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetSelectionDAG.td

index 4b72f81eb1e8d43adf945a466f12a2e9c4263a55..b39dbe4f7738a0483903c210f4ae09861d37129b 100644 (file)
@@ -496,7 +496,7 @@ def immAllZerosV_bc: PatLeaf<(bitconvert), [{
 
 
 // Other helper fragments.
-def not  : PatFrag<(ops node:$in), (xor node:$in, immAllOnes)>;
+def not  : PatFrag<(ops node:$in), (xor node:$in, -1)>;
 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)>;