Remove a vacuous condition.
authorCameron Zwarich <zwarich@apple.com>
Thu, 9 Jun 2011 01:52:44 +0000 (01:52 +0000)
committerCameron Zwarich <zwarich@apple.com>
Thu, 9 Jun 2011 01:52:44 +0000 (01:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132767 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ScalarReplAggregates.cpp

index 09e597fe666250bd5ea926ed1291a1c2319bd1da..8938b287a8409f897cf5f8db2833e606bb13f569 100644 (file)
@@ -343,9 +343,7 @@ void ConvertToScalarInfo::MergeInType(const Type *In, uint64_t Offset,
     // if the implied vector agrees with what we already have and if Offset is
     // compatible with it.
     if (Offset % EltSize == 0 && AllocaSize % EltSize == 0 &&
-        Offset * 8 <
-          (VectorTy ? VectorTy->getPrimitiveSizeInBits()
-                    : (AllocaSize / EltSize) * In->getPrimitiveSizeInBits())) {
+        (!VectorTy || Offset * 8 < VectorTy->getPrimitiveSizeInBits())) {
       if (!VectorTy) {
         VectorTy = VectorType::get(In, AllocaSize/EltSize);
         return;