aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-23 01:52:21 +0000
committerDan Gohman <gohman@apple.com>2008-05-23 01:52:21 +0000
commitb8e94f6d95eca651662c568633647ddd5a6ad785 (patch)
treeba5cf71c04373657da397e227575d915d4341eb6 /lib
parent8c33368479221bbf80ef8f1fca85a74a8aebb2c2 (diff)
downloadexternal_llvm-b8e94f6d95eca651662c568633647ddd5a6ad785.zip
external_llvm-b8e94f6d95eca651662c568633647ddd5a6ad785.tar.gz
external_llvm-b8e94f6d95eca651662c568633647ddd5a6ad785.tar.bz2
Use isSingleValueType instead of isFirstClassType to
exclude struct and array types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51467 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index c35bc49..084f874 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -9030,7 +9030,7 @@ Instruction *InstCombiner::SimplifyMemTransfer(MemIntrinsic *MI) {
if (SrcETy->isSized() && TD->getTypeStoreSize(SrcETy) == Size) {
// The SrcETy might be something like {{{double}}} or [1 x double]. Rip
// down through these levels if so.
- while (!SrcETy->isFirstClassType()) {
+ while (!SrcETy->isSingleValueType()) {
if (const StructType *STy = dyn_cast<StructType>(SrcETy)) {
if (STy->getNumElements() == 1)
SrcETy = STy->getElementType(0);
@@ -9045,7 +9045,7 @@ Instruction *InstCombiner::SimplifyMemTransfer(MemIntrinsic *MI) {
break;
}
- if (SrcETy->isFirstClassType())
+ if (SrcETy->isSingleValueType())
NewPtrTy = PointerType::getUnqual(SrcETy);
}
}