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 | 96e809c47d3bd433e1a26d07bef2882c5b8247e7 (patch) | |
| tree | af75d559e4213be9aeb02bde7b1de28aec6938c7 /llvm/lib/CodeGen | |
| parent | aac464e6c07f416f5c1fe4c0465103aaa3b6ab8a (diff) | |
| download | bcm5719-llvm-96e809c47d3bd433e1a26d07bef2882c5b8247e7.tar.gz bcm5719-llvm-96e809c47d3bd433e1a26d07bef2882c5b8247e7.zip | |
Unary token factor nodes are unneeded.
llvm-svn: 19727
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index c91586b4d42..3d7d3bfa6fa 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/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) |

