From c62894d44044374ab0a5521839daad6ca3aa5961 Mon Sep 17 00:00:00 2001 From: Cameron Zwarich Date: Thu, 9 Jun 2011 01:52:44 +0000 Subject: [PATCH] Remove a vacuous condition. llvm-svn: 132767 --- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 09e597fe6662..8938b287a840 100644 --- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -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;