summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-03-11 21:39:57 +0000
committerDan Gohman <gohman@apple.com>2010-03-11 21:39:57 +0000
commit576aec4363ad12140f44f2e68abe90855270c4df (patch)
tree45f2068020628b2e54c2cb5a2915cc4b68a150da /llvm/lib/CodeGen
parent216e7299d77018347d233ed2a7955455e655fdb5 (diff)
downloadbcm5719-llvm-576aec4363ad12140f44f2e68abe90855270c4df.tar.gz
bcm5719-llvm-576aec4363ad12140f44f2e68abe90855270c4df.zip
Remove getWidenVectorType, which is no longer used.
llvm-svn: 98289
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 0e54ca44aa5..2ae9d349f15 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -792,20 +792,6 @@ unsigned TargetLowering::getVectorTypeBreakdown(LLVMContext &Context, EVT VT,
return 1;
}
-/// getWidenVectorType: given a vector type, returns the type to widen to
-/// (e.g., v7i8 to v8i8). If the vector type is legal, it returns itself.
-/// If there is no vector type that we want to widen to, returns MVT::Other
-/// When and where to widen is target dependent based on the cost of
-/// scalarizing vs using the wider vector type.
-EVT TargetLowering::getWidenVectorType(EVT VT) const {
- assert(VT.isVector());
- if (isTypeLegal(VT))
- return VT;
-
- // Default is not to widen until moved to LegalizeTypes
- return MVT::Other;
-}
-
/// getByValTypeAlignment - Return the desired alignment for ByVal aggregate
/// function arguments in the caller parameter area. This is the actual
/// alignment, not its logarithm.
OpenPOWER on IntegriCloud