aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-06-09 01:52:44 +0000
committerCameron Zwarich <zwarich@apple.com>2011-06-09 01:52:44 +0000
commitc4f78208b399111cc4f5d97ed1875566819f34b4 (patch)
tree1194517640344b82fdacae85b61833fa37ce2afc
parent96cc1d0dfbcf9c7ffffc65f0aa008ff532d444f4 (diff)
Remove a vacuous condition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132767 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/ScalarReplAggregates.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index 09e597fe66..8938b287a8 100644
--- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp
+++ b/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;