diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-23 01:52:21 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-23 01:52:21 +0000 |
commit | 53b2698531719c987822f8352844a23ab2d8c9d8 (patch) | |
tree | 69cbba45feec0937f78653f18d86e5ab60b3e429 | |
parent | 47c96d011e241666806ced3293fa81721e48c5e1 (diff) | |
download | bcm5719-llvm-53b2698531719c987822f8352844a23ab2d8c9d8.tar.gz bcm5719-llvm-53b2698531719c987822f8352844a23ab2d8c9d8.zip |
Use isSingleValueType instead of isFirstClassType to
exclude struct and array types.
llvm-svn: 51467
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index c35bc49e512..084f874f921 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/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); } } |