diff options
author | Chris Lattner <sabre@nondot.org> | 2005-10-20 23:30:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-10-20 23:30:37 +0000 |
commit | eae6d648da16be40964b2636dfca488bb6643144 (patch) | |
tree | a53706887bbd914c72193afd1d7f6c9240099b3f | |
parent | cef6010c64bc56fa2a8f1e7e9e28b8821adeceac (diff) |
Use a literal to define ineg instead of immzero
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23851 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/TargetSelectionDAG.td | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/TargetSelectionDAG.td b/lib/Target/TargetSelectionDAG.td index a1c3f6f245..f27fc90b18 100644 --- a/lib/Target/TargetSelectionDAG.td +++ b/lib/Target/TargetSelectionDAG.td @@ -208,7 +208,6 @@ class PatLeaf<dag frag, code pred = [{}], SDNodeXForm xform = NOOP_SDNodeXForm> // 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 @@ def vtFP : PatLeaf<(vt), [{ return MVT::isFloatingPoint(N->getVT()); }]>; // 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. |