From: Cameron Zwarich Date: Mon, 13 Jun 2011 21:44:38 +0000 (+0000) Subject: Remove a vacuous check. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9837a5c95981c239b34c1d0dfb51d4096409cbe1;p=oota-llvm.git Remove a vacuous check. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132938 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 5644b0e9096..ed3cced4339 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -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.