diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-03-31 20:54:58 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-03-31 20:54:58 +0000 |
| commit | f751d6272d0ab6c049a383302961276c0e5fc5dc (patch) | |
| tree | f6971d5b85a4bd1893701623736a170600b042d4 /llvm/lib/CodeGen | |
| parent | ce5ac7d7760cf186a33a01f29e52de34713c1dd5 (diff) | |
| download | bcm5719-llvm-f751d6272d0ab6c049a383302961276c0e5fc5dc.tar.gz bcm5719-llvm-f751d6272d0ab6c049a383302961276c0e5fc5dc.zip | |
Change shouldSplitVectorElementType to better match the description.
Pass the entire vector type, and not just the element.
llvm-svn: 205247
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/TargetLoweringBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index 90e1199cadd..870370b7de3 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -1087,7 +1087,7 @@ void TargetLoweringBase::computeRegisterProperties() { // that wider vector type. MVT EltVT = VT.getVectorElementType(); unsigned NElts = VT.getVectorNumElements(); - if (NElts != 1 && !shouldSplitVectorElementType(EltVT)) { + if (NElts != 1 && !shouldSplitVectorType(VT)) { bool IsLegalWiderType = false; // First try to promote the elements of integer vectors. If no legal // promotion was found, fallback to the widen-vector method. |

