summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
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
commitc62894d44044374ab0a5521839daad6ca3aa5961 (patch)
tree3b4197d065d601b6d62dcb7d72b1cf7f19cc91da /llvm/lib/Transforms
parent77a699a8296b270fd5b383967f010b28f567093f (diff)
downloadbcm5719-llvm-c62894d44044374ab0a5521839daad6ca3aa5961.tar.gz
bcm5719-llvm-c62894d44044374ab0a5521839daad6ca3aa5961.zip
Remove a vacuous condition.
llvm-svn: 132767
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index 09e597fe666..8938b287a84 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;
OpenPOWER on IntegriCloud