summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-03-31 20:54:58 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-03-31 20:54:58 +0000
commitf751d6272d0ab6c049a383302961276c0e5fc5dc (patch)
treef6971d5b85a4bd1893701623736a170600b042d4 /llvm/lib/CodeGen
parentce5ac7d7760cf186a33a01f29e52de34713c1dd5 (diff)
downloadbcm5719-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.cpp2
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.
OpenPOWER on IntegriCloud