diff options
author | Duncan Sands <baldrick@free.fr> | 2008-02-20 17:38:09 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-02-20 17:38:09 +0000 |
commit | e7b462b329dda0d7518e2a1e0e0d18e82bba218c (patch) | |
tree | 5a90f96fcddb403dbc6f49fdb7c4a50d133a6803 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 34fc7dbf5b556bc72a1157e5c5cd97b21c725e2b (diff) | |
download | bcm5719-llvm-e7b462b329dda0d7518e2a1e0e0d18e82bba218c.tar.gz bcm5719-llvm-e7b462b329dda0d7518e2a1e0e0d18e82bba218c.zip |
LegalizeTypes support for scalarizing a vector store
and splitting extract_subvector. This fixes nine
"make check" testcases, for example
2008-02-04-ExtractSubvector.ll and (partially)
CodeGen/Generic/vector.ll.
llvm-svn: 47384
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index ef28aa5a2b4..28f612d8cd1 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2145,6 +2145,10 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, return getConstant(C->getValue() >> Shift, VT); } break; + case ISD::EXTRACT_SUBVECTOR: + if (N1.getValueType() == VT) // Trivial extraction. + return N1; + break; } if (N1C) { |