diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-08-30 17:21:17 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-08-30 17:21:17 +0000 |
| commit | 61d21b1f3ca8e8d8fb3b28aa6dbebe73592d944c (patch) | |
| tree | 00dbad1f39870c670a41d722b1e8be54415a33b4 /llvm/lib/CodeGen | |
| parent | 45706e9fb8d0a655deee9c729c230e7683f16015 (diff) | |
| download | bcm5719-llvm-61d21b1f3ca8e8d8fb3b28aa6dbebe73592d944c.tar.gz bcm5719-llvm-61d21b1f3ca8e8d8fb3b28aa6dbebe73592d944c.zip | |
Fix FreeBench/fourinarow with the dag isel, by not adding a bogus result
to SHIFT_PARTS nodes
llvm-svn: 23151
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index db3b33abc51..758fd2de8d6 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -2388,10 +2388,7 @@ void SelectionDAGLegalize::ExpandShiftParts(unsigned NodeOp, Ops.push_back(LHSL); Ops.push_back(LHSH); Ops.push_back(Amt); - std::vector<MVT::ValueType> VTs; - VTs.push_back(LHSL.getValueType()); - VTs.push_back(LHSH.getValueType()); - VTs.push_back(Amt.getValueType()); + std::vector<MVT::ValueType> VTs(2, LHSL.getValueType()); Lo = DAG.getNode(NodeOp, VTs, Ops); Hi = Lo.getValue(1); } |

