aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorNadav Rotem <nadav.rotem@intel.com>2012-06-04 11:27:21 +0000
committerNadav Rotem <nadav.rotem@intel.com>2012-06-04 11:27:21 +0000
commitfcb2c3cf5e8ee421fd3a5639cc4a33036e9a614e (patch)
treefd22ec6127b5a415606a785263f7f7b2e263dd56 /include/llvm/Target
parentd01d693c0b337cfcbf524a3a38c8123a6c5fe54e (diff)
downloadexternal_llvm-fcb2c3cf5e8ee421fd3a5639cc4a33036e9a614e.zip
external_llvm-fcb2c3cf5e8ee421fd3a5639cc4a33036e9a614e.tar.gz
external_llvm-fcb2c3cf5e8ee421fd3a5639cc4a33036e9a614e.tar.bz2
Remove the "-promote-elements" flag. This flag is now enabled by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetLowering.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index ab32a84..27447b5 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -1720,13 +1720,6 @@ private:
const TargetData *TD;
const TargetLoweringObjectFile &TLOF;
- /// We are in the process of implementing a new TypeLegalization action
- /// which is the promotion of vector elements. This feature is under
- /// development. Until this feature is complete, it is only enabled using a
- /// flag. We pass this flag using a member because of circular dep issues.
- /// This member will be removed with the flag once we complete the transition.
- bool mayPromoteElements;
-
/// PointerTy - The type to use for pointers, usually i32 or i64.
///
MVT PointerTy;
@@ -1930,9 +1923,8 @@ private:
if (NumElts == 1)
return LegalizeKind(TypeScalarizeVector, EltVT);
- // If we allow the promotion of vector elements using a flag,
- // then try to widen vector elements until a legal type is found.
- if (mayPromoteElements && EltVT.isInteger()) {
+ // Try to widen vector elements until a legal type is found.
+ if (EltVT.isInteger()) {
// Vectors with a number of elements that is not a power of two are always
// widened, for example <3 x float> -> <4 x float>.
if (!VT.isPow2VectorType()) {