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 | f83b1f63ddf27aaba791393940f37709ebbda33b (patch) | |
tree | eb1afeab9425b383c511324b79f3186c4472ea46 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 91dc17ba4991e971c7e89e07642b10817aa28055 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index ef28aa5a2b..28f612d8cd 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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) { |