[llvm-commits] CVS: llvm/lib/Target/TargetSelectionDAG.td
Chris Lattner
lattner at cs.uiuc.edu
Thu Oct 20 16:30:48 PDT 2005
Changes in directory llvm/lib/Target:
TargetSelectionDAG.td updated: 1.4 -> 1.5
---
Log message:
Use a literal to define ineg instead of immzero
---
Diffs of the changes: (+1 -2)
TargetSelectionDAG.td | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/lib/Target/TargetSelectionDAG.td
diff -u llvm/lib/Target/TargetSelectionDAG.td:1.4 llvm/lib/Target/TargetSelectionDAG.td:1.5
--- llvm/lib/Target/TargetSelectionDAG.td:1.4 Thu Oct 20 14:38:11 2005
+++ llvm/lib/Target/TargetSelectionDAG.td Thu Oct 20 18:30:37 2005
@@ -208,7 +208,6 @@
// Leaf fragments.
def immAllOnes : PatLeaf<(imm), [{ return N->isAllOnesValue(); }]>;
-def immZero : PatLeaf<(imm), [{ return N->isNullValue(); }]>;
def vtInt : PatLeaf<(vt), [{ return MVT::isInteger(N->getVT()); }]>;
def vtFP : PatLeaf<(vt), [{ return MVT::isFloatingPoint(N->getVT()); }]>;
@@ -216,7 +215,7 @@
// Other helper fragments.
def not : PatFrag<(ops node:$in), (xor node:$in, immAllOnes)>;
-def ineg : PatFrag<(ops node:$in), (sub immZero, node:$in)>;
+def ineg : PatFrag<(ops node:$in), (sub 0, node:$in)>;
//===----------------------------------------------------------------------===//
// Selection DAG Pattern Support.
More information about the llvm-commits
mailing list