diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-21 18:01:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-21 18:01:22 +0000 |
commit | a93ec3ebfb2b6382c79e577cff4c05c204ed4544 (patch) | |
tree | 56fd39adecec548460135c85a86766e6645abf1b | |
parent | 77e77a6aa0ab25a812947aed477220dd11220a18 (diff) |
Unary token factor nodes are unneeded.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19727 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index c91586b4d4..3d7d3bfa6f 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -511,6 +511,8 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, unsigned OpOpcode = Operand.Val->getOpcode(); switch (Opcode) { + case ISD::TokenFactor: + return Operand; // Factor of one node? No factor. case ISD::SIGN_EXTEND: if (Operand.getValueType() == VT) return Operand; // noop extension if (OpOpcode == ISD::SIGN_EXTEND || OpOpcode == ISD::ZERO_EXTEND) |