Remove a vacuous check.
authorCameron Zwarich <zwarich@apple.com>
Mon, 13 Jun 2011 21:44:38 +0000 (21:44 +0000)
committerCameron Zwarich <zwarich@apple.com>
Mon, 13 Jun 2011 21:44:38 +0000 (21:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132938 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ScalarReplAggregates.cpp

index 5644b0e9096cbd39266c31a24d4c9b65a3380aab..ed3cced43392c598c732bc92560a98179e3f8ddf 100644 (file)
@@ -289,7 +289,7 @@ AllocaInst *ConvertToScalarInfo::TryConvert(AllocaInst *AI) {
   // we just get a lot of insert/extracts.  If at least one vector is
   // involved, then we probably really do have a union of vector/array.
   const Type *NewTy;
-  if (ScalarKind != Integer && VectorTy && HadAVector) {
+  if (VectorTy && HadAVector) {
     DEBUG(dbgs() << "CONVERT TO VECTOR: " << *AI << "\n  TYPE = "
           << *VectorTy << '\n');
     NewTy = VectorTy;  // Use the vector type.