summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-04 19:23:25 +0000
committerChris Lattner <sabre@nondot.org>2009-03-04 19:23:25 +0000
commita41bb40458cc914874f41ca9531dc6b8eef93cd2 (patch)
tree30c0a664f56628f8a700567672ac8e9860149137 /llvm/lib
parentb5b0c87be6fae3d68077978a2357a9f4c05e887d (diff)
downloadbcm5719-llvm-a41bb40458cc914874f41ca9531dc6b8eef93cd2.tar.gz
bcm5719-llvm-a41bb40458cc914874f41ca9531dc6b8eef93cd2.zip
complete comment.
llvm-svn: 66055
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
index b3338676ce3..441b448c010 100644
--- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
+++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -721,7 +721,9 @@ void SROA::RewriteMemIntrinUserOfAlloca(MemIntrinsic *MI, Instruction *BCInst,
SmallVector<AllocaInst*, 32> &NewElts) {
// If this is a memcpy/memmove, construct the other pointer as the
- // appropriate type. The "Other" pointer is the pointer that goes to
+ // appropriate type. The "Other" pointer is the pointer that goes to memory
+ // that doesn't have anything to do with the alloca that we are promoting. For
+ // memset, this Value* stays null.
Value *OtherPtr = 0;
unsigned MemAlignment = MI->getAlignment()->getZExtValue();
if (MemCpyInst *MCI = dyn_cast<MemCpyInst>(MI)) {
OpenPOWER on IntegriCloud