diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-10-27 04:11:32 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-10-27 04:11:32 +0000 |
commit | f065a8467785015336432e3e6e584798d8b48d8e (patch) | |
tree | 54fe00dacd5bf6c8528b030bb84a401ee1ed8888 /include/llvm | |
parent | 80acd97266f6f165285ae9303dea9654f87a2a87 (diff) | |
download | llvm-f065a8467785015336432e3e6e584798d8b48d8e.tar.gz llvm-f065a8467785015336432e3e6e584798d8b48d8e.tar.bz2 llvm-f065a8467785015336432e3e6e584798d8b48d8e.tar.xz |
1. Fix a bug in getTypeConversion. When a *simple* type is split, we need to return the type of the split result.
2. Change the maximum vectorization width from 4 to 8.
3. A test for both.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 9d0aeaa356..13f80fda3d 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -1980,6 +1980,9 @@ public: ValueTypeActions.getTypeAction(NVT.getSimpleVT()) != TypePromoteInteger) && "Promote may not follow Expand or Promote"); + if (LA == TypeSplitVector) + NVT = EVT::getVectorVT(Context, VT.getVectorElementType(), + VT.getVectorNumElements() / 2); return LegalizeKind(LA, NVT); } |