summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-06-13 21:44:38 +0000
committerCameron Zwarich <zwarich@apple.com>2011-06-13 21:44:38 +0000
commit1bfab48edb465436843a627dacd8803dfd73f6da (patch)
tree8a67a093ea09762aa4fe92e0cb1ca04ebf2afbd9 /llvm/lib
parent5e9a0be4b32aada0f0f09da48026672802d41895 (diff)
downloadbcm5719-llvm-1bfab48edb465436843a627dacd8803dfd73f6da.tar.gz
bcm5719-llvm-1bfab48edb465436843a627dacd8803dfd73f6da.zip
Remove a vacuous check.
llvm-svn: 132938
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index 5644b0e9096..ed3cced4339 100644
--- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud